ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Immediate Window? (https://www.excelbanter.com/excel-programming/416104-immediate-window.html)

Charlotte E.

Immediate Window?
 
Hello,


- Is there a way to open and close the Immediate window from VBA?

- Is there a way to clear the Immediate window from VBA?


TIA,




dustinbrearton via OfficeKB.com

Immediate Window?
 
If you are just trying to make it appear and re-appear you can either go to
view in the menu bar and select immediate window or use shortcut key ctrl+g.
To clear it just highlight everything and hit delete.

Charlotte E. wrote:
Hello,

- Is there a way to open and close the Immediate window from VBA?

- Is there a way to clear the Immediate window from VBA?

TIA,


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200808/1


NateBuckley

Immediate Window?
 
CTRL + G opens the window, you can close it by clicking the x in its window.

Or go to the menu - View - Immediate window.

To delete (clear) click inside window push

CTRL + A
Then push delete.

CTRL + A just selects all the text. Make sure you've put your cursor in the
actual window though.

"Charlotte E." wrote:

Hello,


- Is there a way to open and close the Immediate window from VBA?

- Is there a way to clear the Immediate window from VBA?


TIA,





Bob Phillips[_3_]

Immediate Window?
 


Sub OpenImmediateWindow()
Application.SendKeys "^g"
End Sub


Sub ClearImmediateWindow()
Application.SendKeys "^g ^a {DEL}"
End Sub


--
__________________________________
HTH

Bob

"Charlotte E." wrote in message
...
Hello,


- Is there a way to open and close the Immediate window from VBA?

- Is there a way to clear the Immediate window from VBA?


TIA,






Charlotte E.

Immediate Window?
 
Bingo! :-)

Just needed to be preceeded with:

Application.VBE.MainWindow.Visible = True
Application.VBE.MainWindow.SetFocus

Thanks :-)



"Bob Phillips" skrev i en meddelelse
...


Sub OpenImmediateWindow()
Application.SendKeys "^g"
End Sub


Sub ClearImmediateWindow()
Application.SendKeys "^g ^a {DEL}"
End Sub


--
__________________________________
HTH

Bob

"Charlotte E." wrote in message
...
Hello,


- Is there a way to open and close the Immediate window from VBA?

- Is there a way to clear the Immediate window from VBA?


TIA,









All times are GMT +1. The time now is 01:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com