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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get data from excel workbook to access table 1

Status
Not open for further replies.

ietprofessional

Programmer
Joined
Apr 1, 2004
Messages
267
Location
US
Does anyone have any vba-ado code that will allow me(from an access db) pull data from an excel sheet into an access table.

Thanks!
 
Take a look at the DoCmd.TransferSpreadSheet method.
You may also consider link a worksheet to an access table.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks PHV but I need code to get data from multiple sheets from a single workbook.

Thanks!
 
And that should be a problem ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
DoCmd doesn't have a parameter that allows be to choose a specific sheet.
 
But yes, the named parameter Range
Use either named ranges or sheets name like Range:="Sheet2!"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top