<?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: Speed Up Your Code</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/06/25/speed-up-your-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/06/25/speed-up-your-code/</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: audbad</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/25/speed-up-your-code/#comment-66745</link>
		<dc:creator>audbad</dc:creator>
		<pubDate>Tue, 04 Oct 2011 23:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=654#comment-66745</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sometimes the screenupdating=False doesnt work.&lt;/p&gt;
&lt;p&gt;When i step into code, it shows the false as true.&lt;/p&gt;
&lt;p&gt;Further when I run the code, still the screen is refreshing.&lt;/p&gt;
&lt;p&gt;Any idea why this is ?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Sometimes the screenupdating=False doesnt work.</p>
<p>When i step into code, it shows the false as true.</p>
<p>Further when I run the code, still the screen is refreshing.</p>
<p>Any idea why this is ?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan Pablo</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/25/speed-up-your-code/#comment-1853</link>
		<dc:creator>Juan Pablo</dc:creator>
		<pubDate>Mon, 28 Jun 2004 17:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=654#comment-1853</guid>
		<description>&lt;p&gt;Dan,&lt;/p&gt;
&lt;p&gt;On some simple tests on my machine, the &quot;.Value&quot; method runs faster than the other two, while &quot;.Formula&quot; and &quot;.FormulaR1C1? use the same time.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dan,</p>
<p>On some simple tests on my machine, the &#8220;.Value&#8221; method runs faster than the other two, while &#8220;.Formula&#8221; and &#8220;.FormulaR1C1? use the same time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/25/speed-up-your-code/#comment-1852</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sun, 27 Jun 2004 17:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=654#comment-1852</guid>
		<description>&lt;p&gt;Speaking of speeding up your code, I have a question:&lt;/p&gt;
&lt;p&gt;These tree lines seems to do just the very same thing:&lt;/p&gt;
&lt;p&gt;Range(&quot;A1?).FormulaR1C1 = &quot;1234?&lt;br&gt;
Range(&quot;A1?).Formula = &quot;1234?&lt;br&gt;
Range(&quot;A1?).Value = &quot;1234?&lt;/p&gt;
&lt;p&gt;Does Excel executes them all with the same speed, or is one of them faster than the others???&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Speaking of speeding up your code, I have a question:</p>
<p>These tree lines seems to do just the very same thing:</p>
<p>Range(&#8220;A1?).FormulaR1C1 = &#8220;1234?<br />
Range(&#8220;A1?).Formula = &#8220;1234?<br />
Range(&#8220;A1?).Value = &#8220;1234?</p>
<p>Does Excel executes them all with the same speed, or is one of them faster than the others???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan Pablo</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/25/speed-up-your-code/#comment-1851</link>
		<dc:creator>Juan Pablo</dc:creator>
		<pubDate>Fri, 25 Jun 2004 20:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=654#comment-1851</guid>
		<description>&lt;p&gt;rzf:  I too, don&#039;t trust MS for that.  In fact, in XP I&#039;ve noticed that there are some instances when Excel doesn&#039;t set it back, I think they&#039;re going for a more &quot;drastic&quot; approach in coding styles...&lt;/p&gt;
&lt;p&gt;Also, even MS is saying that you should (From XP help file:)&lt;/p&gt;
&lt;p&gt;&quot;Remarks&lt;br&gt;
Turn screen updating off to speed up your macro code. You won&#039;t be able to see what the macro is doing, but it will run faster.&lt;/p&gt;
&lt;p&gt;Remember to set the ScreenUpdating property back to True when your macro ends.&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>rzf:  I too, don&#8217;t trust MS for that.  In fact, in XP I&#8217;ve noticed that there are some instances when Excel doesn&#8217;t set it back, I think they&#8217;re going for a more &#8220;drastic&#8221; approach in coding styles&#8230;</p>
<p>Also, even MS is saying that you should (From XP help file:)</p>
<p>&#8220;Remarks<br />
Turn screen updating off to speed up your macro code. You won&#8217;t be able to see what the macro is doing, but it will run faster.</p>
<p>Remember to set the ScreenUpdating property back to True when your macro ends.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/25/speed-up-your-code/#comment-1850</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Fri, 25 Jun 2004 20:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=654#comment-1850</guid>
		<description>&lt;p&gt;rzf:  Good point.  I generally set it back to whatever it was also.  As for cell calculations, if it&#039;s in an add-in, for instance, I use a sheet in there to not affect the user&#039;s workbook.  If it&#039;s my template, then I generally have more control over whether it&#039;s automatic or manual.  If I need a calculation, I use the Calculate method to make sure things are up-to-date before I get the number.&lt;/p&gt;
&lt;p&gt;As for screen updating - yes it takes care of itself, but I don&#039;t rely on MS.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>rzf:  Good point.  I generally set it back to whatever it was also.  As for cell calculations, if it&#8217;s in an add-in, for instance, I use a sheet in there to not affect the user&#8217;s workbook.  If it&#8217;s my template, then I generally have more control over whether it&#8217;s automatic or manual.  If I need a calculation, I use the Calculate method to make sure things are up-to-date before I get the number.</p>
<p>As for screen updating &#8211; yes it takes care of itself, but I don&#8217;t rely on MS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rzf</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/25/speed-up-your-code/#comment-1849</link>
		<dc:creator>rzf</dc:creator>
		<pubDate>Fri, 25 Jun 2004 19:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=654#comment-1849</guid>
		<description>&lt;p&gt;Just to be a little more user friendly, I try to set the calculation back to what they had it at instead of assuming they were on automatic.  I know a few users who keep it on manual when working on some intensive workbooks.&lt;/p&gt;
&lt;p&gt;Dim intOldState As Integer&lt;br&gt;
intOldState = Application.Calculation&lt;br&gt;
Application.Calculation = xlCalculationManual&lt;br&gt;
&#039;some code here&lt;/p&gt;
&lt;p&gt;Application.Calculation = intOldState&lt;/p&gt;
&lt;p&gt;If I have to calculate in between, I just force it with a calculate statement.  That brings up a question, though.  If you use cell calculations in your code and your user had calculation set to manual before running it, won&#039;t the whole thing go off the track?  Maybe I need to make sure to force calculations all the time instead of assuming it&#039;s on automatic?&lt;/p&gt;
&lt;p&gt;Also, do you really need to turn screenupdating back on?  It seems to take care of itself on exit.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Just to be a little more user friendly, I try to set the calculation back to what they had it at instead of assuming they were on automatic.  I know a few users who keep it on manual when working on some intensive workbooks.</p>
<p>Dim intOldState As Integer<br />
intOldState = Application.Calculation<br />
Application.Calculation = xlCalculationManual<br />
&#8216;some code here</p>
<p>Application.Calculation = intOldState</p>
<p>If I have to calculate in between, I just force it with a calculate statement.  That brings up a question, though.  If you use cell calculations in your code and your user had calculation set to manual before running it, won&#8217;t the whole thing go off the track?  Maybe I need to make sure to force calculations all the time instead of assuming it&#8217;s on automatic?</p>
<p>Also, do you really need to turn screenupdating back on?  It seems to take care of itself on exit.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

