<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Excel VBA Object Model And Object References: The Essential Guide	</title>
	<atom:link href="https://powerspreadsheets.com/excel-vba-object-model/feed/" rel="self" type="application/rss+xml" />
	<link>https://powerspreadsheets.com/excel-vba-object-model/</link>
	<description>Excel and VBA tutorials and training. Learn how to use Microsoft Excel and Visual Basic for Applications now.</description>
	<lastBuildDate>Tue, 10 Jan 2023 13:29:52 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>
		By: Dino Scavelli		</title>
		<link>https://powerspreadsheets.com/excel-vba-object-model/#comment-434</link>

		<dc:creator><![CDATA[Dino Scavelli]]></dc:creator>
		<pubDate>Tue, 10 Jan 2023 13:29:52 +0000</pubDate>
		<guid isPermaLink="false">https://powerspreadsheets.com/?p=1108#comment-434</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://powerspreadsheets.com/excel-vba-object-model/#comment-355&quot;&gt;Matt&lt;/a&gt;.

Hi Matt, to answer your question - yes it is! You could, for instance, first define the workbook name as a string, set the string value, then reference the string variable inside the parentheses. This is what that might look like: 

Dim strA, strB as String

strA = &quot;Book1.xlsx&quot; 
strB = &quot;Book2.xlsx&quot;

Workbooks(strA).Worksheets(“Sheet1”).Range(“A1”).Copy Workbooks(strB).Worksheets(“Sheet1”).Range(“A1″)

Hope this help!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://powerspreadsheets.com/excel-vba-object-model/#comment-355">Matt</a>.</p>
<p>Hi Matt, to answer your question &#8211; yes it is! You could, for instance, first define the workbook name as a string, set the string value, then reference the string variable inside the parentheses. This is what that might look like: </p>
<p>Dim strA, strB as String</p>
<p>strA = &#8220;Book1.xlsx&#8221;<br />
strB = &#8220;Book2.xlsx&#8221;</p>
<p>Workbooks(strA).Worksheets(“Sheet1”).Range(“A1”).Copy Workbooks(strB).Worksheets(“Sheet1”).Range(“A1″)</p>
<p>Hope this help!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Matt		</title>
		<link>https://powerspreadsheets.com/excel-vba-object-model/#comment-355</link>

		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Thu, 07 Apr 2022 21:23:22 +0000</pubDate>
		<guid isPermaLink="false">https://powerspreadsheets.com/?p=1108#comment-355</guid>

					<description><![CDATA[I want to copy a cell from one workbook to another. I have the following code

Workbooks(&quot;Book1.xlsx&quot;).Worksheets(&quot;Sheet1&quot;).Range(&quot;A1&quot;).Copy Workbooks(&quot;Book2.xlsx&quot;).Worksheets(&quot;Sheet1&quot;).Range(&quot;A1&quot;)

Is it possible to replace what is in &quot;  &quot; as a variable?]]></description>
			<content:encoded><![CDATA[<p>I want to copy a cell from one workbook to another. I have the following code</p>
<p>Workbooks(&#8220;Book1.xlsx&#8221;).Worksheets(&#8220;Sheet1&#8221;).Range(&#8220;A1&#8221;).Copy Workbooks(&#8220;Book2.xlsx&#8221;).Worksheets(&#8220;Sheet1&#8221;).Range(&#8220;A1&#8243;)</p>
<p>Is it possible to replace what is in &#8221;  &#8221; as a variable?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Felipe Lourenco de Souza		</title>
		<link>https://powerspreadsheets.com/excel-vba-object-model/#comment-261</link>

		<dc:creator><![CDATA[Felipe Lourenco de Souza]]></dc:creator>
		<pubDate>Mon, 01 Nov 2021 23:14:55 +0000</pubDate>
		<guid isPermaLink="false">https://powerspreadsheets.com/?p=1108#comment-261</guid>

					<description><![CDATA[Very complete and understandable article. Thanks!]]></description>
			<content:encoded><![CDATA[<p>Very complete and understandable article. Thanks!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: powerspreadsheets.com @ 2026-06-29 10:47:42 by W3 Total Cache
-->