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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pasing Arguments To Excel Macro From Access

Status
Not open for further replies.

Aidy680

Technical User
Nov 1, 2006
138
GB
Can anyone tell me why this wont work.

I run it from Access calling it in Excel:

xlApp.Run "'Z:\Test1\Spreadsheet.xls\ATOM_DividendInfo.xls'!GetDividendInfo dteStartDate, dteEndDate"

It's the arguments I'm having problems with. Without them it runs fine.
 
...just noticed. Sorry about the spelling. In a rush...
 
...the error message says that it doesnt exist!?
 
...and the answer is:


xlApp.Run "'Z:\Test1\Spreadsheet.xls\ATOM_DividendInfo.xls'!GetDividendInfo", dteStartDate, dteEndDate


Cheers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top