Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Application.Run 1

Status
Not open for further replies.

WaterSprite

Technical User
Mar 23, 2004
69
US
Windows(Format(Date, "mmmmyyyy") + "Daily_r5.xls").Activate
works just fine.
What I cannot figure out how to do is to use the code with an Appication.Run to run a macro.
I am assuming that what I need is similiar to:

Applcation.Run "'(Format(Date, "mmmmyyyy") + "Daily_r5.xls'!Macro14"

But that does not work.
 
Perhaps this ?
Code:
Application.Run "'" & Format(Date, "mmmmyyyy") & "Daily_r5.xls'!Macro14"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top