tpoirier
13 years agoContributor
How to read data from another sheet in Excel
I am working toward reading user data from the first sheet on an excel file and then using the second to build the test data.
How do I get Excel to read data from the second sheet?
I've tried the following: (JScript)
MySheet = xlFile.Sheets('Sheet2');
cell = VarToStr(Excel.MySheet.Cells(m, u));
Except it gives me an error on the MySheet saying its null, or if I put it all inline it will come back with the error 'Expected ; '
Any ideas?
How do I get Excel to read data from the second sheet?
I've tried the following: (JScript)
MySheet = xlFile.Sheets('Sheet2');
cell = VarToStr(Excel.MySheet.Cells(m, u));
Except it gives me an error on the MySheet saying its null, or if I put it all inline it will come back with the error 'Expected ; '
Any ideas?