I have an excel macro-enabled worksheet that I am using. Excel is primarily being used to store all the macros and VBA scripts, to process another file (CSV). That CSV fileName is currently hardcoded into an Excel variable, for test. The fileName will not be known at runtime. It's being generated by a PowerSheet script, which will then open the Excel file.
I need to open that worksheet from a PowerShell script and pass the (CSV) fileName parameter to the Excel worksheet. I can open the Excel worksheet just fine, and because the test fileName is hardcoded, for test, that works too. But I need to have the PowerShell script pass a fileName parameter to Excel, so the file doesn't have to be hardcoded.
What is the easiest way to do that?
Bookmarks