LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Custom Toolbar Changes Not Portable

Hi
When a menubar is added, it is added to the Excel application, so you
must delete it from there too. I'm assuming your menubar is on the
main Excel menubar.
Add something like this to the top of the code that installs the new
menubar

Set cbWSMenuBar = CommandBars("Worksheet Menu Bar")

An old menubar may still exist. So delete it just in case
On Error Resume Next
cbWSMenuBar.Controls("myOldMenu").Delete
On Error GoTo 0

of course, "myOldMenu" may be the same name as your new menu.
You should put these lines at the top of any code which adds a
menubar, as an improper Excel shutdown might leave the menubar there
and the next time you add the menu bar you will have two of them.
regards
Paul

On Mar 27, 2:37*pm, Len Excel Manic Porzio <Len Excel Manic
wrote:
In Excel 2003 we "attached" a custom toolbar menu to a spreadsheet and saved
it locally which persists properly. *However, if we copy the file to
removable media and move it to another machine, we see an old version of the
menu rather than the most recent menu additions. *We have erased all files
and tried saving directly from Excel as well as dragging and droping the file
but nothing seems to help.

How can we fix this? *Is there a work around?


 
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
adding custom images to a button on custom toolbar Mousam Excel Programming 1 July 13th 07 04:28 PM
Custom face for custom toolbar item Allen_N Excel Programming 2 January 9th 07 02:04 PM
VBA - Disappearing custom menu and custom toolbar Peter[_50_] Excel Programming 2 December 2nd 04 06:09 PM
custom toolbar buttons are saved where? Excel loads twice bymistake and all my custom toolbar buttons get gone!!! Kevin Waite Excel Programming 2 March 3rd 04 03:31 PM
saving toolbar buttons on custom toolbar Paul James Excel Programming 12 August 6th 03 08:28 AM


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