Forum Discussion
sarya
14 years agoFrequent Contributor
Hi Gennadiy,
Thanks for the reply.Sorry for the earlier script but this one is simple script that tries to open an xlsx file,This too is not working.I am not able to figure out why is it not opening up.
test( ){ oExcel = .OleObject("Excel.Application"); aSheets = .OleObject("Scripting.Dictionary"); oSheets;{ oExcel.Workbooks.Open("C:\\Bur64.xlsx"); } (e) { .Error("Exception occured",e.description); ; }//oExcel.Quit();}Thanks,Sumedha
Thanks for the reply.Sorry for the earlier script but this one is simple script that tries to open an xlsx file,This too is not working.I am not able to figure out why is it not opening up.
function test( )
{
var oExcel = Sys.OleObject("Excel.Application");
var aSheets = Sys.OleObject("Scripting.Dictionary");
var oSheets;
oExcel.Workbooks.Close();
try{
oExcel.Workbooks.Open("C:\\Bur64.xlsx");
}
catch(e)
{
Log.Error("Exception occured",e.description);
return null ;
}
//oExcel.Quit();
}
Thanks,
Sumedha
test( ){ oExcel = .OleObject("Excel.Application"); aSheets = .OleObject("Scripting.Dictionary"); oSheets;{ oExcel.Workbooks.Open("C:\\Bur64.xlsx"); } (e) { .Error("Exception occured",e.description); ; }//oExcel.Quit();}Thanks,Sumedha
Related Content
- 2 years agoLennSar
- 4 years agoTommyTester
- 2 years agoLennSar
- 5 years agoOscarGJ