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

Importing Multiple Workbooks from Excel to Access 1

Status
Not open for further replies.

monrosal

Programmer
Aug 22, 2000
42
US

Does anyone know how I can specify which workbook to import when I use the TransferSpreadsheet? In the code, there is no argument to specify a workbook. Is there another method I can use? Thanks

Ramon
 
Did you find out how to do this? I am attempting to import about 150 Excel workbooks (each with 10 spreasheets) into Access. It is killing me?!
 

Use the Range parameter to name the spreadsheet.

Example:

DoCmd.TransferSpreadsheet acImport, _
acSpreadsheetTypeExcel9, "TableName", _
"c:\data\excel\workbookname.xls", _
False, "spreadsheetname!"

NOTE: The ! is required. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top