yep, there sure is, put your macro into the workbook_open private sub (this way it'll run as soon as the workbook opens), then put into your batch file the command to start excel and the workbook, I dont know what kind of batch file you're talking about (more info next time would help a lot)but the kind of command you need is as simple as:
c:\program files\microsoft office\office\excel.exe c:\mypath\myworkbook.xls
this should start excel and the workbook, if you're talking a unix batch then you'll need a different command and I haven't done that stuff in a while so cant help you sorry...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.