Clear Immediate Window

  • Thread starter Thread starter scott
  • Start date Start date
The only way I know is to select the contents by dragging with the left
mouse button down, and hitting the delete button.
 
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?).
 
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.
 
Back
Top