Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey
The below part of my code assigns the macro "ImportData" to my menu item that I have created. I would like for it to assign that macro "ImportData" but the macro is loacted in Workbook ImportData. What is the code to make it assign this macro from that workbook? ctrlButton.OnAction = "ImportData" Thank you Todd Htutenstine |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If the ImportData Workbook is closed:
..OnAction = "c:\my documents\excel\Importdata.xls" & "!module1.importdata" (the module1. stuff is only required if you have non-unique procedure names in different modules.) and if it's open: ..OnAction = "importdata.xls!module1.importdata" Todd Huttenstine wrote: Hey The below part of my code assigns the macro "ImportData" to my menu item that I have created. I would like for it to assign that macro "ImportData" but the macro is loacted in Workbook ImportData. What is the code to make it assign this macro from that workbook? ctrlButton.OnAction = "ImportData" Thank you Todd Htutenstine -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Header & Footers in Templates - Assigning workbook specific | Excel Discussion (Misc queries) | |||
assigning macro | Excel Discussion (Misc queries) | |||
Assigning Name to new workbook | Excel Worksheet Functions | |||
Assigning macro to a hyperlink | Excel Worksheet Functions | |||
Assigning Macro To Shape | Excel Programming |