<?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: Global Defined Names</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/04/29/global-defined-names/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/04/29/global-defined-names/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Charles Williams</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/29/global-defined-names/#comment-12090</link>
		<dc:creator>Charles Williams</dc:creator>
		<pubDate>Tue, 03 May 2005 08:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1111#comment-12090</guid>
		<description>&lt;p&gt;You can create global relative names using INDIRECT with R1C1 mode reference, but personally I would prefer not to use such a construction!&lt;/p&gt;
&lt;p&gt;=INDIRECT(R[-1]C1,False)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You can create global relative names using INDIRECT with R1C1 mode reference, but personally I would prefer not to use such a construction!</p>
<p>=INDIRECT(R[-1]C1,False)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/29/global-defined-names/#comment-11921</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Sat, 30 Apr 2005 15:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1111#comment-11921</guid>
		<description>&lt;p&gt;We are saying: don&#039;t use the !A1 construct (without sheetname) in a defined name if you want a global name that always refers to a range on the sheet you are using the name in.&lt;/p&gt;
&lt;p&gt;Better to use =INDIRECT(&quot;A1?), which has the desired effect too, without the VBA recalc bug.&lt;/p&gt;
&lt;p&gt;Only drawback is that the reference is fixed, but I guess that is no problem because there is no way to know when the reference needs to change, unless all sheets are selected.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>We are saying: don&#8217;t use the !A1 construct (without sheetname) in a defined name if you want a global name that always refers to a range on the sheet you are using the name in.</p>
<p>Better to use =INDIRECT(&#8220;A1?), which has the desired effect too, without the VBA recalc bug.</p>
<p>Only drawback is that the reference is fixed, but I guess that is no problem because there is no way to know when the reference needs to change, unless all sheets are selected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doco</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/29/global-defined-names/#comment-11919</link>
		<dc:creator>doco</dc:creator>
		<pubDate>Sat, 30 Apr 2005 01:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1111#comment-11919</guid>
		<description>&lt;p&gt;So what are we saying here?  Don&#039;t use globals at all?  Or use Offset(...) or SheetName!GlobalRange only?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>So what are we saying here?  Don&#8217;t use globals at all?  Or use Offset(&#8230;) or SheetName!GlobalRange only?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Bullen</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/29/global-defined-names/#comment-11918</link>
		<dc:creator>Stephen Bullen</dc:creator>
		<pubDate>Fri, 29 Apr 2005 21:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1111#comment-11918</guid>
		<description>&lt;p&gt;DON&#039;T DO THAT!!&lt;/p&gt;
&lt;p&gt;It&#039;s even worse than Jan Karel suggests. If, for example, you have calculation set to automatic, you can trigger a recalc in VBA by setting a cell&#039;s value in any worksheet. If you do, the &#039;global&#039; name will refer to the worksheet in which the recalc was triggered.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>DON&#8217;T DO THAT!!</p>
<p>It&#8217;s even worse than Jan Karel suggests. If, for example, you have calculation set to automatic, you can trigger a recalc in VBA by setting a cell&#8217;s value in any worksheet. If you do, the &#8216;global&#8217; name will refer to the worksheet in which the recalc was triggered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/29/global-defined-names/#comment-11917</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Fri, 29 Apr 2005 20:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1111#comment-11917</guid>
		<description>&lt;p&gt;Hi Juan Pablo,&lt;/p&gt;
&lt;p&gt;You are right on the dot.&lt;/p&gt;
&lt;p&gt;If you use names like that, as long as Excel itself is firing the recalculation of the worksheet, all is well.&lt;/p&gt;
&lt;p&gt;BUT.&lt;/p&gt;
&lt;p&gt;As soon as VBA fires a recalc (e.g. Application.Calculate)&lt;/p&gt;
&lt;p&gt;Any cell that uses this global sheet-independent name will get the value of cell A1 ON THE ACTIVE SHEET!&lt;/p&gt;
&lt;p&gt;This may lead to wrong results as I need not explain.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Juan Pablo,</p>
<p>You are right on the dot.</p>
<p>If you use names like that, as long as Excel itself is firing the recalculation of the worksheet, all is well.</p>
<p>BUT.</p>
<p>As soon as VBA fires a recalc (e.g. Application.Calculate)</p>
<p>Any cell that uses this global sheet-independent name will get the value of cell A1 ON THE ACTIVE SHEET!</p>
<p>This may lead to wrong results as I need not explain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doco</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/29/global-defined-names/#comment-11916</link>
		<dc:creator>doco</dc:creator>
		<pubDate>Fri, 29 Apr 2005 20:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1111#comment-11916</guid>
		<description>&lt;p&gt;Never mind...  I figured it out.  What a chump I AM :-D&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Never mind&#8230;  I figured it out.  What a chump I AM <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doco</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/29/global-defined-names/#comment-11915</link>
		<dc:creator>doco</dc:creator>
		<pubDate>Fri, 29 Apr 2005 20:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1111#comment-11915</guid>
		<description>&lt;p&gt;How does this differ from just entering myCell in the name box for Sheet1!$A$1 and hitting enter?  No matter where I am in the workbool =myCell would return the value of &quot;Sheet1!$A$1?&lt;/p&gt;
&lt;p&gt;What am I missing?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>How does this differ from just entering myCell in the name box for Sheet1!$A$1 and hitting enter?  No matter where I am in the workbool =myCell would return the value of &#8220;Sheet1!$A$1?</p>
<p>What am I missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan Pablo González</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/04/29/global-defined-names/#comment-11914</link>
		<dc:creator>Juan Pablo González</dc:creator>
		<pubDate>Fri, 29 Apr 2005 20:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1111#comment-11914</guid>
		<description>&lt;p&gt;I thought that this names weren&#039;t recommended...&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.mrexcel.com/board2/viewtopic.php?p=462059#462059&quot; rel=&quot;nofollow&quot;&gt;http://www.mrexcel.com/board2/viewtopic.php?p=462059#462059&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.mrexcel.com/board2/viewtopic.php?p=496013#496013&quot; rel=&quot;nofollow&quot;&gt;http://www.mrexcel.com/board2/viewtopic.php?p=496013#496013&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.mrexcel.com/board2/viewtopic.php?p=586711#586711&quot; rel=&quot;nofollow&quot;&gt;http://www.mrexcel.com/board2/viewtopic.php?p=586711#586711&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&#039;d like to hear what Jan Karel has to say on that too :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I thought that this names weren&#8217;t recommended&#8230;</p>
<p><a href="http://www.mrexcel.com/board2/viewtopic.php?p=462059#462059" rel="nofollow">http://www.mrexcel.com/board2/viewtopic.php?p=462059#462059</a></p>
<p><a href="http://www.mrexcel.com/board2/viewtopic.php?p=496013#496013" rel="nofollow">http://www.mrexcel.com/board2/viewtopic.php?p=496013#496013</a></p>
<p><a href="http://www.mrexcel.com/board2/viewtopic.php?p=586711#586711" rel="nofollow">http://www.mrexcel.com/board2/viewtopic.php?p=586711#586711</a></p>
<p>I&#8217;d like to hear what Jan Karel has to say on that too <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

