Better to make the Onetime macro a macro in the same workbook, and then use
Application.Run from within this macro to fire the macro in the other
workbook.
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"BrianG" wrote in message
...
I have some public variables defined in an Excel97 macro which I would
like to pass to a different macro. They are "strTempFileName" and
"strTempFilePath". I use the following code to to start the new macro:
Application.OnTime.Now, "MacroFile2.xls!Module1"
Is there a way to pass the values to the new macro when I start it?
BrianG
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!