R
Robert Scheer
Hi.
I have a routine using the OleDb provider to read an Excel worksheet.
The code works well, except when I need to read data from non
adjacents ranges. In this case I receive all sort of errors. I need to
select data from A11:B37 and E11:J37. I tried these expressions but
none of them did the job:
Dim da As New OleDbDataAdapter("Select * from
[Resume$A11:B37;$E11:J37]", conn)
Dim da As New OleDbDataAdapter("Select * from
[Resume$A11:B37;Resume$E11:J37]", conn)
Dim da As New OleDbDataAdapter("Select * from
[Resume$A11:B37];[Resume$E11:J37]", conn)
How do I select non adjacent ranges in a Excel worksheet?
Thanks,
Robert Scheer
I have a routine using the OleDb provider to read an Excel worksheet.
The code works well, except when I need to read data from non
adjacents ranges. In this case I receive all sort of errors. I need to
select data from A11:B37 and E11:J37. I tried these expressions but
none of them did the job:
Dim da As New OleDbDataAdapter("Select * from
[Resume$A11:B37;$E11:J37]", conn)
Dim da As New OleDbDataAdapter("Select * from
[Resume$A11:B37;Resume$E11:J37]", conn)
Dim da As New OleDbDataAdapter("Select * from
[Resume$A11:B37];[Resume$E11:J37]", conn)
How do I select non adjacent ranges in a Excel worksheet?
Thanks,
Robert Scheer