<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Interviewed for the November 2010 NoCOUG Journal</title>
	<atom:link href="http://hoopercharles.wordpress.com/2010/11/04/interviewed-for-the-november-2010-nocoug-journal/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoopercharles.wordpress.com/2010/11/04/interviewed-for-the-november-2010-nocoug-journal/</link>
	<description>Miscellaneous Random Oracle Topics: Stop, Think, ... Understand</description>
	<lastBuildDate>Mon, 13 May 2013 14:10:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/11/04/interviewed-for-the-november-2010-nocoug-journal/#comment-2088</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Thu, 04 Nov 2010 15:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=3559#comment-2088</guid>
		<description><![CDATA[Niall,

Great tip.  If you review the automatically generated macro code, there will often appear something like this when recorded:
[code]    Range(&quot;A1&quot;).Select
    Selection.Font.Bold = True
    ActiveCell.FormulaR1C1 = &quot;My Title&quot;
    Selection.Locked = True
    Selection.FormulaHidden = False
[/code]

Since FormulaHidden = False is the default value, it can be eliminated.  Selecting a cell is not necessary to modify its value, so we can eliminate that line.  If we eliminate the line for selecting a cell, then we need to fix up the lines that begin with &quot;SELECTION.&quot;.  That will take us to this:
[code]
Range(&quot;A1&quot;).Font.Bold = True
Range(&quot;A1&quot;).FormulaR1C1 = &quot;My Title&quot;
Range(&quot;A1&quot;).Locked = True
[/code]

While the above works, it will be a little slow because Excel must resolve the Range(&quot;A1&quot;) for each command.  Also, because we are not specifying a formula, but instead a specific value, we can change FormulaR1C1 to Value.  With those changes we have:
[code]
With Range(&quot;A1&quot;)
    .Font.Bold = True
    .Value = &quot;My Title&quot;
    .Locked = True
End With
[/code]

Now the question of which worksheet does the change apply to, the ActiveSheet, or some other sheet?  Once all of the fine tuning of the automatically generated code is complete, the code posted by Niall becomes the end result.]]></description>
		<content:encoded><![CDATA[<p>Niall,</p>
<p>Great tip.  If you review the automatically generated macro code, there will often appear something like this when recorded:</p>
<pre class="brush: plain; title: ; notranslate">    Range(&quot;A1&quot;).Select
    Selection.Font.Bold = True
    ActiveCell.FormulaR1C1 = &quot;My Title&quot;
    Selection.Locked = True
    Selection.FormulaHidden = False
</pre>
<p>Since FormulaHidden = False is the default value, it can be eliminated.  Selecting a cell is not necessary to modify its value, so we can eliminate that line.  If we eliminate the line for selecting a cell, then we need to fix up the lines that begin with &#8220;SELECTION.&#8221;.  That will take us to this:</p>
<pre class="brush: plain; title: ; notranslate">
Range(&quot;A1&quot;).Font.Bold = True
Range(&quot;A1&quot;).FormulaR1C1 = &quot;My Title&quot;
Range(&quot;A1&quot;).Locked = True
</pre>
<p>While the above works, it will be a little slow because Excel must resolve the Range(&#8220;A1&#8243;) for each command.  Also, because we are not specifying a formula, but instead a specific value, we can change FormulaR1C1 to Value.  With those changes we have:</p>
<pre class="brush: plain; title: ; notranslate">
With Range(&quot;A1&quot;)
    .Font.Bold = True
    .Value = &quot;My Title&quot;
    .Locked = True
End With
</pre>
<p>Now the question of which worksheet does the change apply to, the ActiveSheet, or some other sheet?  Once all of the fine tuning of the automatically generated code is complete, the code posted by Niall becomes the end result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niall Litchfield</title>
		<link>http://hoopercharles.wordpress.com/2010/11/04/interviewed-for-the-november-2010-nocoug-journal/#comment-2086</link>
		<dc:creator><![CDATA[Niall Litchfield]]></dc:creator>
		<pubDate>Thu, 04 Nov 2010 14:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=3559#comment-2086</guid>
		<description><![CDATA[Hiding this tip in the comments! 

I second the comment about using the macro recorder. I&#039;d add that frequently it generates multiple calls to set individual properties of com objects. These can *nearly* always be replaced with the with construct - eg to manipulate Cell A1 

[code]
With Worksheets(&quot;Sheet1&quot;).Range(&quot;A1&quot;)
    .Font.Bold = True
    .Value = &quot;My Title&quot;
    .Locked = True
End With
[/code]]]></description>
		<content:encoded><![CDATA[<p>Hiding this tip in the comments! </p>
<p>I second the comment about using the macro recorder. I&#8217;d add that frequently it generates multiple calls to set individual properties of com objects. These can *nearly* always be replaced with the with construct &#8211; eg to manipulate Cell A1 </p>
<pre class="brush: plain; title: ; notranslate">
With Worksheets(&quot;Sheet1&quot;).Range(&quot;A1&quot;)
    .Font.Bold = True
    .Value = &quot;My Title&quot;
    .Locked = True
End With
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
