I've been running into trouble opening Macro-Enabled Excel Workbooks through a VBScript that runs overnight (works with extracting data from SAP, into Excel).
It used to work all the time, but recently it keeps throwing a
Windows Script Host error 800706BE "remote procedure call failed"
on the third line of code below:
Set ExcelApp = CreateObject("Excel.application")
ExcelApp.Visible = true
Set MyBook = ExcelApp.Workbooks.Open("N:\Automation_Materials\Open AutoPO Issues\Scripts\A_scriptPackage\AB_MacroController.xlsm")
Set ExcelApp = Nothing
The file doesn't open, which causes some problems for the rest of the automated process. All the excel file should do is run some VBA to edit other workbooks that have fresh data. It's a few manipulations, then this VBA just closes up shop and exits everything. Problem is, it never even opens!