Excel COMObject giving error in Escript
Hi,
I am trying to open an excel file filename.xls from escript.
Below is the code I am trying:
ExcelApp = COMCreateObject("Excel.Application");
ExcelApp.Workbooks.Open(FilePath);
But this gives me error:
Error: COM Error - "Unknown name."
(SBL-SCR-00141)
Please let me know if I should use Excel.Application or something else while initializing the object.
Regards