![]() |
Execute a macro in another file with an argument
Using Office 2003 and Windows XP;
I need to call a program from a currently active XL file to another XL file; I know you can a syntax like: Application.Run "'FullFileName'!MacroName" However, I need to supply an argument in this call, but the following doesn't work: Application.Run "'FullFileName'!MacroName(MyArgument)" MyArgument is a variable name; how can this be done? Thanks much in advance. |
Execute a macro in another file with an argument
application.run "'FullfileName'!macroname", myargument
But FullFileName should not include the path, right? XP wrote: Using Office 2003 and Windows XP; I need to call a program from a currently active XL file to another XL file; I know you can a syntax like: Application.Run "'FullFileName'!MacroName" However, I need to supply an argument in this call, but the following doesn't work: Application.Run "'FullFileName'!MacroName(MyArgument)" MyArgument is a variable name; how can this be done? Thanks much in advance. -- Dave Peterson |
All times are GMT +1. The time now is 01:56 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com