harshadw
7 years agoNew Contributor
How to resolve the error while opening an excel workbook?
I am trying to open an excel workbook using the below lines of code. It throws an error saying,
function Test(){
var Excel;
Excel = Sys.OleObject("Excel.Application");
Excel.Visible = true;
Excel.Workbooks.Open("D:\\test1.xls");
}
"Sorry, we couldn't find D:\test1.xls. Is it possible it was moved, renamed or deleted?"
I don't know what's wrong with this simple lines of code.
I am using TestComplete 12 and have MS Excel 2016 64 bit installed. Is it causing the problem?
Please help!