Forum Discussion
tpoirier
13 years agoContributor
UPDATE: When working with Excel and looping through a row of cells make sure your index starts at 1 starting at 0 will come up with an error saying a semi colon ':' was expected. This error can be very misleading and left me looking for a problem that wasn't there!
hhagay
10 years agoContributor
UPDATE:
Replace:
var cell = VarToStr(Excel.Cells(i, 1).Value);
With:
var cell = (VarToString(Excel.Cells.Item(i, 1)));