Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have written some modules and some code to create a customised menu (all in VBA). When I create my xla I can see my modules, but the code to create the menu does not run unless I go to 'This Workbook' and manually run the code. When I do this I can see my menu, but when I click on it the attached macro cannot be found. Please could you tell me how to get my menu code, within my xla, to run and how to make my macro visible. Is there some issues with menus within xla's? Thank you, r. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
First of all, the code to create the menu should be run from the add-in's
Thisworkbook's Workbook_Open routine Private Sub Workbook_Open() your menu code End Sub Then deleted when the add-in is closed. Private Sub Workbook_BeforeClose(Cancel As Boolean) delete code End Sub Second of all, macros in add-ins will not show up in ToolsMacroMacros. Gord Dibben MS Excel MVP On 29 Oct 2006 08:20:50 -0800, wrote: Hi, I have written some modules and some code to create a customised menu (all in VBA). When I create my xla I can see my modules, but the code to create the menu does not run unless I go to 'This Workbook' and manually run the code. When I do this I can see my menu, but when I click on it the attached macro cannot be found. Please could you tell me how to get my menu code, within my xla, to run and how to make my macro visible. Is there some issues with menus within xla's? Thank you, r. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sub-menus of main menus for Excel 2007 | New Users to Excel | |||
Creating Drop-down menus with subset drop-down menus | Excel Worksheet Functions | |||
difference between word 2003 menus and word 2007 menus-Explain pl | Excel Discussion (Misc queries) | |||
New Menus - attaching but menus are reset | Excel Worksheet Functions | |||
Overriding Actions of Excel DropDown Menus and Poup Menus | Excel Programming |