How to force the immediate window in the VBE to clear

B

Ben

Hi all,

Is there a piece of code that can force the immediate window to clear out on
demand?

Thank you,

Ben


--
 
B

Barb Reinhardt

I just CTRL A and delete it. Not elegant, but it works. Or did you want to
do it programmatically?
 
B

Ben

Got it. Thank you Bob.

Ben

--



Bob Phillips said:
Sub ClearImmediateWindow()
Application.SendKeys "^g ^a {DEL}"
End Sub

--
__________________________________
HTH

Bob
 

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