![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: May 2002
Location: Scotland
Posts: 434
|
Hi All,
I have a custom toolbar associated with a workbook which works fine. If I want to modify it slightly by doing the alteration, deleting the currently attached toolbar and attaching the new modified one, this works fine until I save and reopen. When I reopen, the changes have not been saved! If I repeat this process (modifying, etc.) and save again, it works. It seems I always have to make the modifications twice By the way, I have a bit of code built in which deletes the custom toolbar from the application on exit (I don't know if this has anything to do with it): Sub Workbook_BeforeClose(Cancel As Boolean) Application.CommandBars("CPM_TOOL").Delete End Sub Any ideas to save me doing this all twice every time I make a small amendment? Atholl
__________________
Excel 2000 Windows XP Pro |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: May 2002
Location: UK
Posts: 3,333
|
Hi A,
Why not create the toolbar in VBA?
__________________
<font color="blue"> ««« <font color="red">¤ <font color="blue"><font size=+1>Richie </font><font color="red">¤<font color="blue"> »»» </font> |
|
|
|
|
|
#3 |
|
Join Date: May 2002
Location: Scotland
Posts: 434
|
Because this is the only way I know how!
Atholl
__________________
Excel 2000 Windows XP Pro |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: May 2002
Location: UK
Posts: 3,333
|
Quote:
__________________
<font color="blue"> ««« <font color="red">¤ <font color="blue"><font size=+1>Richie </font><font color="red">¤<font color="blue"> »»» </font> |
|
|
|
|
|
|
#5 |
|
Join Date: May 2002
Location: Scotland
Posts: 434
|
I would like to learn this approach, but it may take too long, as I'm on a timescale!
I found that the problem I am having is indeed a bug known to microsoft: http://support.microsoft.com/default.aspx?kbid=330345 I'll have to wait until Service Pack 3 is released Atholl
__________________
Excel 2000 Windows XP Pro |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|