Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default 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,



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default 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,




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default 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,





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default 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,









Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save a desired window size but hv window comeup fullsz by d smjm1982 Excel Discussion (Misc queries) 1 February 15th 08 11:10 AM
View cell contents as a pop-up window (similar to comments window) Oldersox Excel Worksheet Functions 1 February 6th 08 07:09 AM
Docking Project Explorer, Properties window and Code window in VBE jayray Setting up and Configuration of Excel 2 March 27th 07 04:42 PM
Duplicated code window and userform window problem Zhu Excel Programming 3 November 8th 06 05:09 AM
The window opens in a smaller window not full sized window. Rachael Excel Discussion (Misc queries) 0 November 7th 06 09:04 PM


All times are GMT +1. The time now is 05:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"