<?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: Properties and Object Continued</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2010/07/13/properties-and-object-continued/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2010/07/13/properties-and-object-continued/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jan Karel Pieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/07/13/properties-and-object-continued/#comment-48054</link>
		<dc:creator>Jan Karel Pieterse</dc:creator>
		<pubDate>Sun, 18 Jul 2010 13:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=4040#comment-48054</guid>
		<description>&lt;p&gt;Jon: I do too, but &quot;entire word&quot; didn&#039;t help in the example I gave :-)&lt;br&gt;
Thanks for the MZ tip, I need to look at that!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jon: I do too, but &#8220;entire word&#8221; didn&#8217;t help in the example I gave <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> <br />
Thanks for the MZ tip, I need to look at that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/07/13/properties-and-object-continued/#comment-48011</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Fri, 16 Jul 2010 12:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=4040#comment-48011</guid>
		<description>&lt;p&gt;Jan Karel -&lt;/p&gt;
&lt;p&gt;I&#039;ve learned to use the &quot;entire word&quot; option when doing a global search and replace on my code.&lt;/p&gt;
&lt;p&gt;The &quot;Find&quot; feature in MZ Tools actually lists all instances of a search term, and it&#039;s helpful to be able to see where and how the term is used.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jan Karel -</p>
<p>I&#8217;ve learned to use the &#8220;entire word&#8221; option when doing a global search and replace on my code.</p>
<p>The &#8220;Find&#8221; feature in MZ Tools actually lists all instances of a search term, and it&#8217;s helpful to be able to see where and how the term is used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Phillips</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/07/13/properties-and-object-continued/#comment-48002</link>
		<dc:creator>Bob Phillips</dc:creator>
		<pubDate>Thu, 15 Jul 2010 22:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=4040#comment-48002</guid>
		<description>&lt;p&gt;That&#039;s my experience Doug. I can declare variables badly with no problem, and I can use that happily (or unhappily) thereafter. many times I have declared something like&lt;/p&gt;
&lt;p&gt;Dim row As Long&lt;/p&gt;
&lt;p&gt;and later using the row property shows as&lt;/p&gt;
&lt;p&gt;Range(&quot;G1?).row&lt;/p&gt;
&lt;p&gt;that is, row is not proper case, it takes my variable case.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>That&#8217;s my experience Doug. I can declare variables badly with no problem, and I can use that happily (or unhappily) thereafter. many times I have declared something like</p>
<p>Dim row As Long</p>
<p>and later using the row property shows as</p>
<p>Range(&#8220;G1?).row</p>
<p>that is, row is not proper case, it takes my variable case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Karel Pieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/07/13/properties-and-object-continued/#comment-47924</link>
		<dc:creator>Jan Karel Pieterse</dc:creator>
		<pubDate>Wed, 14 Jul 2010 08:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=4040#comment-47924</guid>
		<description>&lt;p&gt;I try to avoid using existing &quot;words&quot; and object/method/property- names like the plague, because they tend to confuse me if I revisit the code later on. It can also lead to unexpected problems:&lt;/p&gt;
&lt;p&gt;I once did a search and replace in a file where someone used an object variable called &quot;Public CodeBook As Workbook&quot;. It was used like so:&lt;br&gt;
Set CodeBook = ThisWorkbook&lt;br&gt;
So since we already have ThisWorkbook available I did a global Search and replace through the code, but made a small mistake: I also replaced the declaration, which became:&lt;br&gt;
Public ThisworkBook As Workbook.&lt;br&gt;
All of a sudden, I started to get Object variable not set errors on each line that addressed the Thisworkbook object.&lt;br&gt;
Not realising I changed that declaration line, I thought I had corrupted the VBA project of the file. It took me over an hour to find the problem.&lt;br&gt;
The punch line: Don&#039;t use reserved words or existing names. More importantly: be careful when doing S&amp;R in code :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I try to avoid using existing &#8220;words&#8221; and object/method/property- names like the plague, because they tend to confuse me if I revisit the code later on. It can also lead to unexpected problems:</p>
<p>I once did a search and replace in a file where someone used an object variable called &#8220;Public CodeBook As Workbook&#8221;. It was used like so:<br />
Set CodeBook = ThisWorkbook<br />
So since we already have ThisWorkbook available I did a global Search and replace through the code, but made a small mistake: I also replaced the declaration, which became:<br />
Public ThisworkBook As Workbook.<br />
All of a sudden, I started to get Object variable not set errors on each line that addressed the Thisworkbook object.<br />
Not realising I changed that declaration line, I thought I had corrupted the VBA project of the file. It took me over an hour to find the problem.<br />
The punch line: Don&#8217;t use reserved words or existing names. More importantly: be careful when doing S&amp;R in code <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/07/13/properties-and-object-continued/#comment-47918</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Wed, 14 Jul 2010 05:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=4040#comment-47918</guid>
		<description>&lt;p&gt;Yikes!  I have the 2002 version of that book.  I haven&#039;t looked at it for a while, but it has a similarly long Appendix A, followed by the VBE and Office XP object models.  I have to admit I prefer reading blogs :).&lt;/p&gt;
&lt;p&gt;I&#039;ve never seen a variable turn red because it was a reserved word.  I just created a subroutine and declared Application, Property, Range, Name, SpecialCells, ActiveSheet and some others as doubles and assigned them values.  Not a peep from the IDE and it ran fine.  I did get a couple of compile errors for declaring Application and ActiveSheet as public variables in the ThisWorkbook module, but that&#039;s it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yikes!  I have the 2002 version of that book.  I haven&#8217;t looked at it for a while, but it has a similarly long Appendix A, followed by the VBE and Office XP object models.  I have to admit I prefer reading blogs <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I&#8217;ve never seen a variable turn red because it was a reserved word.  I just created a subroutine and declared Application, Property, Range, Name, SpecialCells, ActiveSheet and some others as doubles and assigned them values.  Not a peep from the IDE and it ran fine.  I did get a couple of compile errors for declaring Application and ActiveSheet as public variables in the ThisWorkbook module, but that&#8217;s it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/07/13/properties-and-object-continued/#comment-47913</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 14 Jul 2010 04:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=4040#comment-47913</guid>
		<description>&lt;p&gt;A lot of experimenting, but...  I tech edited a book called Excel 2007 VBA by Green, Bullen, Bovey, and Alexander.  I had just submitted the final chapters and was feeling pretty good.  The Wrox guy emailed me and said something like &quot;Looks great.  We only have to edit Appendix A and we&#039;ll be done.  It&#039;s about 300 pages.&quot;  I emailed him back and said that he must have had a typo in his email, but that a 30 page appendix would be no problem.&lt;/p&gt;
&lt;p&gt;There was no typo.  Appendix A is entitled &quot;Excel 2007 Object Model&quot;.  In its 329 pages, there is an entry for every object, collection object, property, method, and event in Excel&#039;s object model, including examples for many of them.  I had just edited ~600 pages and I was only 2/3 done.  But I learned a lot about the OM.  Did I say a lot?  I meant a f**k load.&lt;/p&gt;
&lt;p&gt;The Application object started on page 642 and ended on 664.  The Range object: 852-867.&lt;/p&gt;
&lt;p&gt;Here are a few objects that you&#039;ve probably never used: AutoCorrect object, CubeField object, SmartTag object, Treeview Control object, XMLSchema object.&lt;/p&gt;
&lt;p&gt;That&#039;s my sob story.  Thanks for letting me get that off my chest.&lt;/p&gt;
&lt;p&gt;Re Reserved Names: When the text in the VBE turns red, that&#039;s how I know I can&#039;t use that word.  But I&#039;ve found for properties of custom objects, that it doesn&#039;t complain very often.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>A lot of experimenting, but&#8230;  I tech edited a book called Excel 2007 VBA by Green, Bullen, Bovey, and Alexander.  I had just submitted the final chapters and was feeling pretty good.  The Wrox guy emailed me and said something like &#8220;Looks great.  We only have to edit Appendix A and we&#8217;ll be done.  It&#8217;s about 300 pages.&#8221;  I emailed him back and said that he must have had a typo in his email, but that a 30 page appendix would be no problem.</p>
<p>There was no typo.  Appendix A is entitled &#8220;Excel 2007 Object Model&#8221;.  In its 329 pages, there is an entry for every object, collection object, property, method, and event in Excel&#8217;s object model, including examples for many of them.  I had just edited ~600 pages and I was only 2/3 done.  But I learned a lot about the OM.  Did I say a lot?  I meant a f**k load.</p>
<p>The Application object started on page 642 and ended on 664.  The Range object: 852-867.</p>
<p>Here are a few objects that you&#8217;ve probably never used: AutoCorrect object, CubeField object, SmartTag object, Treeview Control object, XMLSchema object.</p>
<p>That&#8217;s my sob story.  Thanks for letting me get that off my chest.</p>
<p>Re Reserved Names: When the text in the VBE turns red, that&#8217;s how I know I can&#8217;t use that word.  But I&#8217;ve found for properties of custom objects, that it doesn&#8217;t complain very often.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2010/07/13/properties-and-object-continued/#comment-47902</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Tue, 13 Jul 2010 16:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=4040#comment-47902</guid>
		<description>&lt;p&gt;Dick, I&#039;m curious how you learned so much about the behind-the-scenes of Excel&#039;s object model.  Having read you excellent posts I&#039;d love to read more, especially if it&#039;s as clear as this.  Do you have any recommendations?&lt;br&gt;
Also, I learned early on not to use Excel reserved words for variable names, but have wondered if the same applied to class properties.  Reading this the answer looks like &quot;no.&quot;  I&#039;m curious when exactly the reserved name restriction applies.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick, I&#8217;m curious how you learned so much about the behind-the-scenes of Excel&#8217;s object model.  Having read you excellent posts I&#8217;d love to read more, especially if it&#8217;s as clear as this.  Do you have any recommendations?<br />
Also, I learned early on not to use Excel reserved words for variable names, but have wondered if the same applied to class properties.  Reading this the answer looks like &#8220;no.&#8221;  I&#8217;m curious when exactly the reserved name restriction applies.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

