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

How to import the certain sheets from excel file?

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hello,

I want to import certain sheets from the excel spreadsheet into one access table.

I know how to import one sheet:
DoCmd.TransferSpreadsheet acImport, , "Table1", path, True, "Group_Billing!"

But is there a way to import a few sheets?

Thanks.
 
If you do DoCmd.TransferSpreadsheet back to back does it append or overwrite? If it overwrites, you might try creating a temporary table to hold the import and then running an append query against it to the destination file in between imports.

Please repost and let me know if either of these suggestions works.

Good LucK!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top