Hi all
I'm trying to work out a command-line function (ie shell command) that'll open an Excel spreadsheet and run a macro with arguments. Opening Excel is easy enough, as is opening a specific spreadsheet. There is also a way to run a specific macro within the sheet.
But what stumps me is how to pass arguments. Any ideas? I basically need my spreadsheet (or rather a subroutine in it) to run from a batch file, with a different set of parameters each time.
Cheers!
I'm trying to work out a command-line function (ie shell command) that'll open an Excel spreadsheet and run a macro with arguments. Opening Excel is easy enough, as is opening a specific spreadsheet. There is also a way to run a specific macro within the sheet.
But what stumps me is how to pass arguments. Any ideas? I basically need my spreadsheet (or rather a subroutine in it) to run from a batch file, with a different set of parameters each time.
Cheers!