Forum Discussion
TanyaYatskovska
Alumni
13 years agoHi,
What if you separate your line 23 in the following way?
...
var cell = VarToStr(Excel.Cells(i,0));
switch(cell) //This is line 23
// I have tried Excel.ActiveSheet.Cell
{
...
I recommend that you go through the TestComplete sample demonstrating how to read data from Excel files. You can find it on your computer here:
<TestComplete Samples>\Miscellaneous\MSOffice\