Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running an external Macro
How do I get this to work?
Private Sub btnUpdateLifeCycle_Click() Dim strMacro As String strMacro = "\\arlfs03\shared\Engineering\ENG\BOM Archive\" & "'" & "BOM_Macros.xls" & "'" & "!UPDATE_LIFECYCLE_SUMMARY" Run (strMacro) End Sub I want to fire off a macro without having to open and close the workbook containing the macro. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running an external Macro
You have to open the workbook. The macro is data in a file - Excel
interprets it, makes it executable code and executes the code. To do this, it has to open the workbook. -- Regards, Tom Ogilvy wrote in message oups.com... How do I get this to work? Private Sub btnUpdateLifeCycle_Click() Dim strMacro As String strMacro = "\\arlfs03\shared\Engineering\ENG\BOM Archive\" & "'" & "BOM_Macros.xls" & "'" & "!UPDATE_LIFECYCLE_SUMMARY" Run (strMacro) End Sub I want to fire off a macro without having to open and close the workbook containing the macro. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
disable user running macro from Tools Macro | Excel Discussion (Misc queries) | |||
how to get onkey macro to fire while another macro is running | Excel Programming | |||
Running external programs | Excel Programming | |||
Disable Macro at open by an external macro | Excel Programming | |||
Launch Macro in Access via Macro running in Excel??? | Excel Programming |