VBE Editor: Clear Immediate Pane from VBA
When developing with VBA I find myself often using
Debug.Print
However the immediate pane can get quite cluttered from time to time. It would be an excellent addition if I could use e.g.
Debug.ClearImmediatePane
from VBA to remove all info from the immediate pane.

3 comments
-
Michael Flynn commented
You can also check out mz-tools which has an immediate pane eraser. (I'm not affiliated with mz-tools, other than loving their software for the past few years).
I agree having a built-in VBE way makes more sense... -
Ben Sacheri commented
I agree that there is benefit to having this handled from code. There are times that I'm testing a procedure over and over and I want the Immediate window to be cleared with each run.
This is an almost-there work around I use sometimes:
Debug.Print String(255, vbNewLine) ' Clear the immediate window
I also made an AutoHotkey script which lets CTRL+E clear the Immediate pane even if it doesn't have focus.
#IfWinActive Microsoft Visual Basic for Applications
^e:: ; CTRL+E = Erase/Clear Immediate window
Send ^g^a{Del}
Return -
Neil Ginsberg commented
Ctrl+A, Del usually does it for me. Pretty simple.