Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Using a macro and/or button to open the VBE

Is it possible to assing a macro and/or button to open the VBE? I know that
seems a little redundant, but I need to try.

Thanks to all.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Using a macro and/or button to open the VBE

Michael,
This seems to work:
Application.VBE.MainWindow.Visible = True

NickHK

"michaelberrier" wrote in message
...
Is it possible to assing a macro and/or button to open the VBE? I know

that
seems a little redundant, but I need to try.

Thanks to all.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Using a macro and/or button to open the VBE

Nick,
Thanks for the help. That opens the window but puts it behind the workbook.
what do I add to bring it forward?

Thanks again.

"NickHK" wrote:

Michael,
This seems to work:
Application.VBE.MainWindow.Visible = True

NickHK

"michaelberrier" wrote in message
...
Is it possible to assing a macro and/or button to open the VBE? I know

that
seems a little redundant, but I need to try.

Thanks to all.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Using a macro and/or button to open the VBE

Michael,
I don't program the VBE, so much of this is guesswork. Does this help:
Application.VBE.MainWindow.SetFocus

NickHK

"michaelberrier" wrote in message
...
Nick,
Thanks for the help. That opens the window but puts it behind the

workbook.
what do I add to bring it forward?

Thanks again.

"NickHK" wrote:

Michael,
This seems to work:
Application.VBE.MainWindow.Visible = True

NickHK

"michaelberrier" wrote in

message
...
Is it possible to assing a macro and/or button to open the VBE? I

know
that
seems a little redundant, but I need to try.

Thanks to all.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Using a macro and/or button to open the VBE

Perfect.
For future ref, it took something like this:
With Application.VBE.MainWindow
..Visible = True
..SetFocus
End With

I'm using it with a password taken from a userform, and that's what made it
work. Thanks again.

"NickHK" wrote:

Michael,
I don't program the VBE, so much of this is guesswork. Does this help:
Application.VBE.MainWindow.SetFocus

NickHK

"michaelberrier" wrote in message
...
Nick,
Thanks for the help. That opens the window but puts it behind the

workbook.
what do I add to bring it forward?

Thanks again.

"NickHK" wrote:

Michael,
This seems to work:
Application.VBE.MainWindow.Visible = True

NickHK

"michaelberrier" wrote in

message
...
Is it possible to assing a macro and/or button to open the VBE? I

know
that
seems a little redundant, but I need to try.

Thanks to all.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Using a macro and/or button to open the VBE

ALT+F11 already opens the VBE.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"michaelberrier" wrote
in message
...
Is it possible to assing a macro and/or button to open the VBE?
I know that
seems a little redundant, but I need to try.

Thanks to all.



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
need macro from button to open selectable file dillon26 Excel Worksheet Functions 1 February 8th 09 09:55 AM
Button fails to call macro when open an Excel via Intranet tigertax Excel Discussion (Misc queries) 1 April 12th 05 10:21 AM
comman button macro can't open worksheet b_yousif Excel Programming 1 September 2nd 04 12:23 PM
Button fails to call macro when open an Excel file from web Sam Excel Programming 1 June 30th 04 10:42 PM
macro and button to open a word document from within excel JAJOSEPHESQ Excel Programming 1 May 5th 04 06:06 AM


All times are GMT +1. The time now is 09:49 PM.

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"