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

import excel sheet2

Status
Not open for further replies.

thegameoflife

Programmer
Dec 5, 2001
206
0
0
US
How can I specify what sheet I want to import into access?
 
Try...

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "MyTableName", "Path", , "Sheet2!"

You must use the exclamation mark after the sheet name.

ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us

May God bless you beyond your imagination!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top