Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset with Sheet and Range form Excel

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
GB
Hi all.
I have an excel workbook I want to get stuff out of!
The following allows me to return everything from the correct sheet
strSQL = "SELECT * FROM [Sheet1$]"
But I want to be able to get A10:C30 out from it.
I thought I may be able to use
strSQL = "SELECT * FROM [Sheet1$A10:C30]"
But no.

Any ideas

}...the bane of my life!
 
Give the range a name, "x" say, and access it by
[tt]strSQL="select * from [x]"[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top