So, I have an excel macro I need to run after a SAP macro is finished. The SAP macro works fine without the inclusion of the Excel macro code. I'm not sure if it is how the sub routines are called because I do not know that much about VBScript. SAP automatically opens the file when it finishes the macro, so it will already be open.
I am getting a 800A03EE code right now expecting a ). Could someone please help with this?
Here is the full code of the VBS file.
Macro1()
is a VBA macro - it belongs in Excel unless you modify it to run in vbscript. For it to run in vbscript (for example) you would need to get a reference to the running Excel instance, and use that to qualify your worksheet references etc. You also can't use named arguments or built-in excel contants in vbscript. – Tim Williams Jun 25 '12 at 20:02