Clear Immediate Window

A

Arvin Meyer [MVP]

The only way I know is to select the contents by dragging with the left
mouse button down, and hitting the delete button.
 
M

Marshall Barton

scott said:
Is there a shortcut command to clear the contents of the Immediate Window?

Not that I know of. However there are lot's of ways to
clear it manually. These are pretty easy to do:

Click in the window, hit Ctrl+Home hit Ctrsl + Shift + End
and hit Delete

Click in the window, use the VBE Edit - Select All menu item
and then hit Delete

The following actions will perform the latter one above if
you can find a safe place to run them :-\
RunCommand acCmdDebugWindow
RunCommand acCmdSelectAll
RunCommand acCmdDelete
But this looks pretty dangerous to me so make sure you have
a good backup before trying them (maybe from a custom tool
bar button?).
 
S

Stephen Lebans

Another solution would be something like:
Dim strClear As String
strClear = String(256, vbCrLf)
Debug.Print strClear



--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top