PC Review


Reply
Thread Tools Rate Thread

Building Menus with Macros upon opening Excel

 
 
VBA-PA
Guest
Posts: n/a
 
      10th Jul 2009

I have a macro that successfully creates a menu. However, it appears as if
the menu is deleted right after it is created. Does Excel load the
excel11.xlb after the auto_open macros run?

Any suggestions on how I can create menu items at start-up.

Thanks
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      10th Jul 2009
Try converting the auot_open to a worksheet open event. auto_open is an
older version of the worksheet open event. The auto_open goes back to excel
95 & 97. The workbook open event was invented in excel 2000.

To modify the code move the auto open from a module to THISWORKBOOK and
change the parameters passed. I believe the only difference between the two
type macros is the order they run when the workbook is opened.

Private Sub Workbook_Open()
'your code here
End Sub

or

Private Sub App_WorkbookOpen(ByVal Wb As Workbook)
'your code here
End Sub




"VBA-PA" wrote:

> I have a macro that successfully creates a menu. However, it appears as if
> the menu is deleted right after it is created. Does Excel load the
> excel11.xlb after the auto_open macros run?
>
> Any suggestions on how I can create menu items at start-up.
>
> Thanks

 
Reply With Quote
 
Homey
Guest
Posts: n/a
 
      10th Jul 2009

>>Does Excel load the excel11.xlb after the auto_open macros run?


No it does not. Seem something else is deleting your menu.

"VBA-PA" <VBA-(E-Mail Removed)> wrote in message
news:E41123D9-8558-416B-94A3-(E-Mail Removed)...
|I have a macro that successfully creates a menu. However, it appears as if
| the menu is deleted right after it is created. Does Excel load the
| excel11.xlb after the auto_open macros run?
|
| Any suggestions on how I can create menu items at start-up.
|
| Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
keep menus in excel macros that are copied to another computer =?Utf-8?B?anIzZG9ncw==?= Microsoft Excel Programming 2 16th Aug 2005 06:07 PM
Problem with IE menus after installing excel macros Michael Moyna Microsoft Excel Programming 1 17th Jul 2004 01:00 AM
Excel menus are locked when opening an XLS file using IE Hugo de groot Microsoft Excel Misc 2 23rd Oct 2003 08:38 AM
Opening Excel From a Web Page With .asp and Building a Table Mel Microsoft Excel Programming 0 31st Jul 2003 02:27 PM
disable menus on opening Excel Dave Microsoft Excel Programming 0 16th Jul 2003 11:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:48 AM.