Does anyone know how to clear the immediate window using VBA?
While I can always clear it myself manually, I am curious if there is a way to do this programmatically.
If you happen to be using Autohotkey here's the script I use.
The key command is Ctrl+Delete
. It only works if the VBE is active.
When pressed it will clear the immediate window and then activate the code editor, via F7
.
I tend to want to clear the immediate when while I'm coding so now I can just hit Ctrl-Delete
and keep coding.