Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Close VB in Code

Hi
Is it possible to add a line of Vb code to a macro that will close the
visual basic editor window automatically?
If so, how is it written


Thanks


Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Close VB in Code

Try this Paul

Application.VBE.MainWindow.Visible = False


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Paul Watkins" wrote in message ...
Hi
Is it possible to add a line of Vb code to a macro that will close the
visual basic editor window automatically?
If so, how is it written


Thanks


Paul




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Close VB in Code

Thanks again Ron, it works great

Paul

"Ron de Bruin" wrote in message
...
Try this Paul

Application.VBE.MainWindow.Visible = False


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Paul Watkins" wrote in message

...
Hi
Is it possible to add a line of Vb code to a macro that will close the
visual basic editor window automatically?
If so, how is it written


Thanks


Paul






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
Auto save as text and close in code? GD New Users to Excel 2 May 18th 09 08:33 PM
How to code the Macro to save and close a file? Eric Excel Discussion (Misc queries) 7 June 10th 07 03:28 PM
close form code tkaplan Excel Discussion (Misc queries) 1 June 3rd 05 10:49 PM
VBA code to automatically close file Kevin Excel Programming 4 November 6th 03 04:18 PM
Close worksheet with Macro or Code sanaullah Excel Programming 1 October 2nd 03 08:35 PM


All times are GMT +1. The time now is 11:44 PM.

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

About Us

"It's about Microsoft Excel"