I need to be able to handle Excel files versions 97 – 2010 and also those with and without header info.
Don’t need help with connection strings : that works.
What I do need help with is querying worksheets that do not have header information i.e. no descriptor of a column’s data in the first row. How do I refer to these columns in the OLEDB query?
I’ve tried the following
"Select [Sheet2$A] from [Sheet2$]" //selecting Column A
"Select [Sheet2$A$] from [Sheet2$]" //selecting Column A
Refer to the columns as F1, F2, … Fn, numbering from the first selected column.
g5 = row 1, column F1.
So: