Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Remove custom menu
I created a custom menu that loads when a workbook is
opened. This menu is needed only for this one workbook. How, and where, do I write the code to remove the menu when the workbook is closed? TIA |
#2
|
|||
|
|||
Hi
Use this events in the thisworkbook module Private Sub Workbook_Activate() End Sub Private Sub Workbook_Deactivate() End Sub Read Chip Pearson's site about Events http://www.cpearson.com/excel/*events.htm -- Regards Ron de Bruin http://www.rondebruin.nl wrote in message ... I created a custom menu that loads when a workbook is opened. This menu is needed only for this one workbook. How, and where, do I write the code to remove the menu when the workbook is closed? TIA |
#3
|
|||
|
|||
Ron,
I think you have an extra hypen in your link. http://www.cpearson.com/excel/events.htm Ron de Bruin wrote: Hi Use this events in the thisworkbook module Private Sub Workbook_Activate() End Sub Private Sub Workbook_Deactivate() End Sub Read Chip Pearson's site about Events http://www.cpearson.com/excel/*events.htm -- Regards Ron de Bruin http://www.rondebruin.nl wrote in message ... I created a custom menu that loads when a workbook is opened. This menu is needed only for this one workbook. How, and where, do I write the code to remove the menu when the workbook is closed? TIA -- Dave Peterson |
#4
|
|||
|
|||
Thanks Dave
-- Regards Ron de Bruin http://www.rondebruin.nl "Dave Peterson" wrote in message ... Ron, I think you have an extra hypen in your link. http://www.cpearson.com/excel/events.htm Ron de Bruin wrote: Hi Use this events in the thisworkbook module Private Sub Workbook_Activate() End Sub Private Sub Workbook_Deactivate() End Sub Read Chip Pearson's site about Events http://www.cpearson.com/excel/*events.htm -- Regards Ron de Bruin http://www.rondebruin.nl wrote in message ... I created a custom menu that loads when a workbook is opened. This menu is needed only for this one workbook. How, and where, do I write the code to remove the menu when the workbook is closed? TIA -- Dave Peterson |
#5
|
|||
|
|||
Hi Dave
Strange that you don't see the - in the thread I copy/paste Chip's link from a old thread (Google) -- Regards Ron de Bruin http://www.rondebruin.nl "Dave Peterson" wrote in message ... Ron, I think you have an extra hypen in your link. http://www.cpearson.com/excel/events.htm Ron de Bruin wrote: Hi Use this events in the thisworkbook module Private Sub Workbook_Activate() End Sub Private Sub Workbook_Deactivate() End Sub Read Chip Pearson's site about Events http://www.cpearson.com/excel/*events.htm -- Regards Ron de Bruin http://www.rondebruin.nl wrote in message ... I created a custom menu that loads when a workbook is opened. This menu is needed only for this one workbook. How, and where, do I write the code to remove the menu when the workbook is closed? TIA -- Dave Peterson |
#6
|
|||
|
|||
I see it in this thread--using Netscape 4.79 as my newsreader.
Ron de Bruin wrote: Hi Dave Strange that you don't see the - in the thread I copy/paste Chip's link from a old thread (Google) -- Regards Ron de Bruin http://www.rondebruin.nl "Dave Peterson" wrote in message ... Ron, I think you have an extra hypen in your link. http://www.cpearson.com/excel/events.htm Ron de Bruin wrote: Hi Use this events in the thisworkbook module Private Sub Workbook_Activate() End Sub Private Sub Workbook_Deactivate() End Sub Read Chip Pearson's site about Events http://www.cpearson.com/excel/*events.htm -- Regards Ron de Bruin http://www.rondebruin.nl wrote in message ... I created a custom menu that loads when a workbook is opened. This menu is needed only for this one workbook. How, and where, do I write the code to remove the menu when the workbook is closed? TIA -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Keep Custom Menu settings - help !! | Excel Worksheet Functions | |||
Editing XL95 custom menus with XL97 | Excel Worksheet Functions | |||
Deleting custom Commands from File Menu are nor saved next time w. | Excel Worksheet Functions | |||
canot remove command from FILE MENU | Excel Discussion (Misc queries) | |||
How to remove an Excel Main Menu item inserted by .xla file | Excel Discussion (Misc queries) |