LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default 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.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using file name as argument in function jille Excel Programming 6 February 8th 07 03:10 AM
Need syntax for RUNning a Word macro with an argument, called from an Excel macro Steve[_84_] Excel Programming 3 July 6th 06 07:42 PM
Execute macro at opening file clippan New Users to Excel 1 November 26th 05 10:03 AM
Function (array argument, range argument, string argument) vba Witek[_2_] Excel Programming 3 April 24th 05 03:12 PM


All times are GMT +1. The time now is 06:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"