Forum Discussion
rraghvani
Champion Level 3
18 days agoI'm not able to get this to work either, if I already have Excel opened. I would expect the spreadsheet to open.
function test4()
{
let Excel = Sys.OleObject("Excel.Application");
//let Excel = getActiveXObject("Excel.Application");
Sys.Process("explorer").Window("Shell_TrayWnd", "", 1).Activate();
//Excel.Visible = true;
Excel.Workbooks.Open("C:\\Temp\\Book2.xlsx");
aqUtils.Delay(5000);
Excel.Quit();
}
I suggest you open a support ticket via https://support.smartbear.com/testcomplete/message/