<?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: Clear the Immediate Window</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/</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: Access por exemplo</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/#comment-70755</link>
		<dc:creator>Access por exemplo</dc:creator>
		<pubDate>Sat, 17 Dec 2011 15:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=615#comment-70755</guid>
		<description>After testing the code placed in the comment, I realized that Immediate Window was not really clean. While there were many lines in the Immediate Window, only the top lines were excluded.

The code below seems to solve the problem.

Sub ClearImmediateWindow()
SendKeys &quot;^g ^{HOME}&quot;
DoEvents
SendKeys &quot;+^{END}&quot;
DoEvents
SendKeys &quot;{DEL}&quot;
End Sub</description>
		<content:encoded><![CDATA[<p>After testing the code placed in the comment, I realized that Immediate Window was not really clean. While there were many lines in the Immediate Window, only the top lines were excluded.</p>
<p>The code below seems to solve the problem.</p>
<p>Sub ClearImmediateWindow()<br />
SendKeys &#8220;^g ^{HOME}&#8221;<br />
DoEvents<br />
SendKeys &#8220;+^{END}&#8221;<br />
DoEvents<br />
SendKeys &#8220;{DEL}&#8221;<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Limpar a Janela imediata do VBE no Access &#171; Access por exemplo</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/#comment-70731</link>
		<dc:creator>Limpar a Janela imediata do VBE no Access &#171; Access por exemplo</dc:creator>
		<pubDate>Fri, 16 Dec 2011 20:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=615#comment-70731</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Access por exemplo</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/#comment-70727</link>
		<dc:creator>Access por exemplo</dc:creator>
		<pubDate>Fri, 16 Dec 2011 18:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=615#comment-70727</guid>
		<description>Putting it all together. The cursor back to the top of the immediate window ! Works fine in Access 2000

Sub ClearImmediateWindow()
    Debug.Print String(200, 10)
    SendKeys &quot;^g ^{HOME} {F7}&quot;
End Sub</description>
		<content:encoded><![CDATA[<p>Putting it all together. The cursor back to the top of the immediate window ! Works fine in Access 2000</p>
<p>Sub ClearImmediateWindow()<br />
    Debug.Print String(200, 10)<br />
    SendKeys &#8220;^g ^{HOME} {F7}&#8221;<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Rothstein (MVP - Excel)</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/#comment-44114</link>
		<dc:creator>Rick Rothstein (MVP - Excel)</dc:creator>
		<pubDate>Tue, 23 Feb 2010 05:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=615#comment-44114</guid>
		<description>&lt;p&gt;While this doesn&#039;t actually &quot;clear&quot; the Immediate Window in the way one might want, it does produce an equivalent looking result which should be sufficient for most purposes...&lt;/p&gt;
&lt;p&gt;Sub ClearImmediateWindow()&lt;br&gt;
  Debug.Print String(200, 10)&lt;br&gt;
End Sub&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>While this doesn&#8217;t actually &#8220;clear&#8221; the Immediate Window in the way one might want, it does produce an equivalent looking result which should be sufficient for most purposes&#8230;</p>
<p>Sub ClearImmediateWindow()<br />
  Debug.Print String(200, 10)<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasco Mora</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/#comment-44108</link>
		<dc:creator>Vasco Mora</dc:creator>
		<pubDate>Mon, 22 Feb 2010 22:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=615#comment-44108</guid>
		<description>&lt;p&gt;From here... &lt;a href=&quot;http://www.eggheadcafe.com/conversationwarning.aspx?messageid=31899696&amp;groupid=589&quot; rel=&quot;nofollow&quot;&gt;http://www.eggheadcafe.com/conversationwarning.aspx?messageid=31899696&amp;groupid=589&lt;/a&gt;&lt;br&gt;
I made a simple improvement that clears the Immediate windows and returns to the code windows.&lt;br&gt;
  Application.SendKeys &quot;^g ^a {DEL} {F7}&quot;&lt;br&gt;
Regards&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>From here&#8230; <a href="http://www.eggheadcafe.com/conversationwarning.aspx?messageid=31899696&amp;groupid=589" rel="nofollow">http://www.eggheadcafe.com/conversationwarning.aspx?messageid=31899696&#038;groupid=589</a><br />
I made a simple improvement that clears the Immediate windows and returns to the code windows.<br />
  Application.SendKeys &#8220;^g ^a {DEL} {F7}&#8221;<br />
Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Paramore</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/#comment-35797</link>
		<dc:creator>Graham Paramore</dc:creator>
		<pubDate>Sat, 25 Oct 2008 06:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=615#comment-35797</guid>
		<description>&lt;p&gt;Hi JP, the reason why you may wish to clear the immediate window via code is if you have several procedures or sections of code within a procedure that have DEBUG.PRINT lines. Personally I use several lines of debug.print within my code to take note of certain values so I can check that the procedure/function is working correctly. Sometimes you may only want to concentrate on what certain actions are doing so it would be handy to clear the immediate window at some point so you only see the latest actions.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi JP, the reason why you may wish to clear the immediate window via code is if you have several procedures or sections of code within a procedure that have DEBUG.PRINT lines. Personally I use several lines of debug.print within my code to take note of certain values so I can check that the procedure/function is working correctly. Sometimes you may only want to concentrate on what certain actions are doing so it would be handy to clear the immediate window at some point so you only see the latest actions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/#comment-34770</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Fri, 12 Sep 2008 16:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=615#comment-34770</guid>
		<description>&lt;p&gt;Can anyone explain why the Immediate window needs to be clear?&lt;/p&gt;
&lt;p&gt;Why not just click anywhere in the window, press Ctrl-A and then Delete button?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Can anyone explain why the Immediate window needs to be clear?</p>
<p>Why not just click anywhere in the window, press Ctrl-A and then Delete button?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BartH</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/#comment-34767</link>
		<dc:creator>BartH</dc:creator>
		<pubDate>Fri, 12 Sep 2008 09:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=615#comment-34767</guid>
		<description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Found this thread with an internet search. Inspired me to write next code:&lt;/p&gt;
&lt;p&gt;Sub ClearImmediateWindowNL()&lt;br&gt;
&#039;Works on PC with Dutch version menu&lt;br&gt;
Application.SendKeys &quot;%d&quot;, True&lt;br&gt;
Application.SendKeys &quot;d&quot;, True&lt;br&gt;
Application.SendKeys &quot;^a&quot;, True&lt;br&gt;
Application.SendKeys &quot;{DEL}&quot;, True&lt;br&gt;
End Sub&lt;/p&gt;
&lt;p&gt;Sub ClearImmediateWindowUS()&lt;br&gt;
&#039;Should work on PC with US version menu&lt;br&gt;
Application.SendKeys &quot;%g&quot;, True&lt;br&gt;
Application.SendKeys &quot;a&quot;, True&lt;br&gt;
Application.SendKeys &quot;^a&quot;, True&lt;br&gt;
Application.SendKeys &quot;{DEL}&quot;, True&lt;br&gt;
End Sub&lt;/p&gt;
&lt;p&gt;* Good Luck *&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Found this thread with an internet search. Inspired me to write next code:</p>
<p>Sub ClearImmediateWindowNL()<br />
&#8216;Works on PC with Dutch version menu<br />
Application.SendKeys &#8220;%d&#8221;, True<br />
Application.SendKeys &#8220;d&#8221;, True<br />
Application.SendKeys &#8220;^a&#8221;, True<br />
Application.SendKeys &#8220;{DEL}&#8221;, True<br />
End Sub</p>
<p>Sub ClearImmediateWindowUS()<br />
&#8216;Should work on PC with US version menu<br />
Application.SendKeys &#8220;%g&#8221;, True<br />
Application.SendKeys &#8220;a&#8221;, True<br />
Application.SendKeys &#8220;^a&#8221;, True<br />
Application.SendKeys &#8220;{DEL}&#8221;, True<br />
End Sub</p>
<p>* Good Luck *</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: figzet</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/#comment-28159</link>
		<dc:creator>figzet</dc:creator>
		<pubDate>Sat, 20 Oct 2007 18:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=615#comment-28159</guid>
		<description>&lt;p&gt;&#039;My proposition is:&lt;/p&gt;
&lt;p&gt;Public Sub ClearImmediateWindow()&lt;br&gt;
    Application.SendKeys &quot;^g^a{DEL}{F7}&quot;, True&lt;br&gt;
    DoEvents&lt;br&gt;
End Sub&lt;/p&gt;
&lt;p&gt;&#039;{F7} -        cursor return to Code Window&lt;br&gt;
&#039;DoEvents -    ending clearing ImmediateWindow before execution next code lines&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8216;My proposition is:</p>
<p>Public Sub ClearImmediateWindow()<br />
    Application.SendKeys &#8220;^g^a{DEL}{F7}&#8221;, True<br />
    DoEvents<br />
End Sub</p>
<p>&#8216;{F7} &#8211;        cursor return to Code Window<br />
&#8216;DoEvents &#8211;    ending clearing ImmediateWindow before execution next code lines</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bobmac</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/09/clear-the-immediate-window/#comment-19836</link>
		<dc:creator>bobmac</dc:creator>
		<pubDate>Tue, 06 Jun 2006 12:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=615#comment-19836</guid>
		<description>&lt;p&gt;this works in excel 2002&lt;/p&gt;
&lt;p&gt;Sub ClearImmediateWindow1()&lt;/p&gt;
&lt;p&gt;    Application.SendKeys &quot;^g&quot;, True&lt;br&gt;
    Application.SendKeys &quot;^a&quot;, True&lt;br&gt;
    Application.SendKeys &quot;{DEL}&quot;, True&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>this works in excel 2002</p>
<p>Sub ClearImmediateWindow1()</p>
<p>    Application.SendKeys &#8220;^g&#8221;, True<br />
    Application.SendKeys &#8220;^a&#8221;, True<br />
    Application.SendKeys &#8220;{DEL}&#8221;, True</p>
<p>End Sub</p>
]]></content:encoded>
	</item>
</channel>
</rss>

