Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default custom menu bar doesn't work


I am currently doing version testing on an Excel template that will b
distributed. It was developed in Excel 2000, and I am currentl
testing it in Excel 2002. The template has a custom menu bar that i
created when the worksheet is opened. This menu bar does not appear t
be working properly in Excel 2002. All buttons of the menu bar caus
Excel to open a new copy of the same template, and I am prompted wit
the standard pop-up to enable or disable macros. When I run the macro
via the standard menu bar Tools -- Macros, all of them work fine. Th
problem only seems to occur when I try to run the macros via buttons o
a custom menu bar. As an experiment, I also tried creating a button o
a worksheet and attaching one of the macros to that button. Well, whe
I click on that button the same problem occurs as with the custom men
bar (Excel tries to open another copy of the same worksheet).
suspect this has something to do with a secruity setting or something.

Please help!! I am at a loss for a solution or workaround. Thanks i
advance for any assistanc

--
cristin
-----------------------------------------------------------------------
cristina's Profile: http://www.excelforum.com/member.php...fo&userid=1467
View this thread: http://www.excelforum.com/showthread.php?threadid=26295

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default custom menu bar doesn't work


What has worked for me is creating a custom add-in that includes th
custom menu creation on open , deletion on exit. Have you tried thi
avenue

--
bdcris

-----------------------------------------------------------------------
bdcrisp's Profile: http://www.excelforum.com/member.php...nfo&userid=356
View this thread: http://www.excelforum.com/showthread.php?threadid=26295

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default custom menu bar doesn't work

In addition to this approach, which IMO is much better than attaching a toolbar you should make
sure the .OnAction property of the buttons includes the workbook name as a prefix to the
procedure to be run. This is how I do this:

.OnAction = ThisWorkbook.Name & "!ProcedureToRun"

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

bdcrisp wrote:

What has worked for me is creating a custom add-in that includes the
custom menu creation on open , deletion on exit. Have you tried this
avenue?



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
Custom Menu Todd Huttenstine Excel Programming 6 August 21st 04 02:30 PM
Custom Menu Bar Don Lloyd Excel Programming 5 August 20th 04 06:49 PM
Custom Menu return to Excel Menu upon Closing VetcalcReport Excel Programming 2 August 2nd 04 02:59 PM
Custom Menu Bob Phillips[_6_] Excel Programming 0 May 7th 04 04:27 PM
Custom Menu ewize1 Excel Programming 2 October 30th 03 05:16 PM


All times are GMT +1. The time now is 08:40 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"