JavaScript runtime error. ReferenceError: Excel is not defined
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2020
03:52 AM
08-31-2020
03:52 AM
JavaScript runtime error. ReferenceError: Excel is not defined
I tried to write data in an excel cell using the below code
function abc()
{
var excelFile = Excel.Open("C:\\temp\\DataStorageExcel.xlsx");
var excelSheet = excelFile.SheetByTitle("Sheet");
var valueC = excelSheet.CellByName("C3").Value;
excelSheet.Cell("C", 8).Value = valueC;
excelFile.Save();
}
When i run the code i get an error as "JavaScript runtime error. Reference Error: Excel is not defined"
Can anyone help
Solved! Go to Solution.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2020
06:37 AM
08-31-2020
06:37 AM
if you are on TestComplete version 14.60 please consider filing for a support ticket, since it sounds like the Excel object is not being recognized. otherwise, the syntax there looks ok, seeing as it is the same as our documentation
Best,
Justin Kim
Justin Kim
