<?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: Identifying Sheets</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/</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: Egon</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/#comment-35863</link>
		<dc:creator>Egon</dc:creator>
		<pubDate>Thu, 30 Oct 2008 19:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1901#comment-35863</guid>
		<description>&lt;p&gt;Sounds like this CodeName instability adds a bunch of annoyance, no matter which approach one takes.&lt;/p&gt;
&lt;p&gt;Hope this bug will be fixed before Excel 2007 is deployed here (wishful thinking...).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sounds like this CodeName instability adds a bunch of annoyance, no matter which approach one takes.</p>
<p>Hope this bug will be fixed before Excel 2007 is deployed here (wishful thinking&#8230;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/#comment-35306</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Thu, 16 Oct 2008 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1901#comment-35306</guid>
		<description>&lt;p&gt;AlexJ, I do that to.  Something that I learned a while back from one of the newsgroup experts I think.  It makes it easier to test code too.  I do it in addins as well, for instance, AddinInstall or WorkBookOpen.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>AlexJ, I do that to.  Something that I learned a while back from one of the newsgroup experts I think.  It makes it easier to test code too.  I do it in addins as well, for instance, AddinInstall or WorkBookOpen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AlexJ</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/#comment-35303</link>
		<dc:creator>AlexJ</dc:creator>
		<pubDate>Thu, 16 Oct 2008 14:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1901#comment-35303</guid>
		<description>&lt;p&gt;I&#039;ve been trying to put all my ThisWorkbook and Worksheet code in regular modules, with event driven calls from ThisWorkbook or Worksheet. This way I can easily swap out an old module for a new one without copying class module code to the sheet or ThisWorkbook. &lt;/p&gt;
&lt;p&gt;Obviously not using an addin.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to put all my ThisWorkbook and Worksheet code in regular modules, with event driven calls from ThisWorkbook or Worksheet. This way I can easily swap out an old module for a new one without copying class module code to the sheet or ThisWorkbook. </p>
<p>Obviously not using an addin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/#comment-35242</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 15 Oct 2008 23:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1901#comment-35242</guid>
		<description>&lt;p&gt;On occasion I&#039;ve put code into my templates, including code that really should live in a regular module. But it&#039;s easier to distribute a few templates with code, especially code that works specifically on the template&#039;s worksheet, than to distribute an add-in widely.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>On occasion I&#8217;ve put code into my templates, including code that really should live in a regular module. But it&#8217;s easier to distribute a few templates with code, especially code that works specifically on the template&#8217;s worksheet, than to distribute an add-in widely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/#comment-35136</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Tue, 14 Oct 2008 14:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1901#comment-35136</guid>
		<description>&lt;p&gt;I never put any code in my templates, but if it&#039;s all in the sheet&#039;s class module I may be persuaded to make an exception.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I never put any code in my templates, but if it&#8217;s all in the sheet&#8217;s class module I may be persuaded to make an exception.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Murphy</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/#comment-35135</link>
		<dc:creator>Simon Murphy</dc:creator>
		<pubDate>Tue, 14 Oct 2008 14:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1901#comment-35135</guid>
		<description>&lt;p&gt;Doug, yeah, they&#039;re a hard lot to please maintainers. Me, I like to try and keep logic blocks either code side or grid side. &lt;/p&gt;
&lt;p&gt;sh needs to be an object so the code will compile, as a normal worksheet doesn&#039;t have an IsAnInvoice method. Just those with the added VBA method (or it could be a property).&lt;/p&gt;
&lt;p&gt;Actually I think I would use a value in a cell where possible because then the logic is clear for everyone. That would depend on how meddlesome the users are though.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Doug, yeah, they&#8217;re a hard lot to please maintainers. Me, I like to try and keep logic blocks either code side or grid side. </p>
<p>sh needs to be an object so the code will compile, as a normal worksheet doesn&#8217;t have an IsAnInvoice method. Just those with the added VBA method (or it could be a property).</p>
<p>Actually I think I would use a value in a cell where possible because then the logic is clear for everyone. That would depend on how meddlesome the users are though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/#comment-35080</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Mon, 13 Oct 2008 23:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1901#comment-35080</guid>
		<description>&lt;p&gt;Simon,that&#039;s cool, I never thought of doing something like that.  Although I&#039;m not sure it&#039;s less work for the maintainer - it might just make my head spin an extra orbit!&lt;/p&gt;
&lt;p&gt;Can you explain why your function requires sh to be declared as object, not worksheet?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Simon,that&#8217;s cool, I never thought of doing something like that.  Although I&#8217;m not sure it&#8217;s less work for the maintainer &#8211; it might just make my head spin an extra orbit!</p>
<p>Can you explain why your function requires sh to be declared as object, not worksheet?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Murphy</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/#comment-35068</link>
		<dc:creator>Simon Murphy</dc:creator>
		<pubDate>Mon, 13 Oct 2008 21:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1901#comment-35068</guid>
		<description>&lt;p&gt;I&#039;d add a IsAnInvoice boolean function to the invoice sheets that returns true then change your call to&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt; IsInvoice(sh &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;object&lt;/span&gt;) &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Boolean&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;On&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Error&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Resume&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; IsInvoice = sh.IsAnInvoice&lt;br&gt;
&#160; &#160; &#160; &#160;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;That way its all upfront in the VBA for the maintainers that follow&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;d add a IsAnInvoice boolean function to the invoice sheets that returns true then change your call to</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Public</span> <span class="kw1">Function</span> IsInvoice(sh <span class="kw1">As</span> <span class="kw1">object</span>) <span class="kw1">As</span> <span class="kw1">Boolean</span><br />
&nbsp; &nbsp; <span class="kw1">On</span> <span class="kw1">Error</span> <span class="kw1">Resume</span> <span class="kw1">Next</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; IsInvoice = sh.IsAnInvoice<br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
<span class="kw1">End</span> <span class="kw1">Function</span></div>
</div>
<p>That way its all upfront in the VBA for the maintainers that follow</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Bullen</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/#comment-35043</link>
		<dc:creator>Stephen Bullen</dc:creator>
		<pubDate>Mon, 13 Oct 2008 14:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1901#comment-35043</guid>
		<description>&lt;p&gt;When I last looked at custom sheet properties, they weren&#039;t copied across when you copied a sheet - defeating the point of Dick&#039;s requirement. I use hidden sheet-level defined names to identify worksheets and workbook document properties for books.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>When I last looked at custom sheet properties, they weren&#8217;t copied across when you copied a sheet &#8211; defeating the point of Dick&#8217;s requirement. I use hidden sheet-level defined names to identify worksheets and workbook document properties for books.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/10/10/identifying-sheets/#comment-35039</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Mon, 13 Oct 2008 11:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1901#comment-35039</guid>
		<description>&lt;p&gt;Never knew about custom sheet props, very useful!&lt;br&gt;
Dick: And of course you use Name Manager to hide the range name, not?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Never knew about custom sheet props, very useful!<br />
Dick: And of course you use Name Manager to hide the range name, not?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

