I have a Visual Basic program which references data from an Excel sheet and I have a function which calls certain cells in order but changes which row it will be calling on a regular basis. Example code below:
x=Start.xlsheet.Cells(position, 1).Value
where position changes frequently.
When I run though, I get a error "Application-defined or object-defined error", I'm baffled because I've never seen this error, nor does msdn library offer any help at all.
Any help would be appreciated, tks
x=Start.xlsheet.Cells(position, 1).Value
where position changes frequently.
When I run though, I get a error "Application-defined or object-defined error", I'm baffled because I've never seen this error, nor does msdn library offer any help at all.
Any help would be appreciated, tks