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

Import excel into access starting at specific row

Status
Not open for further replies.

mmogul

IS-IT--Management
Dec 1, 2003
218
US
I have another application that exports its data into excel. But the headings start on row 3 and the data on row 4. What is the best way to import this data into an access table?
 
A solution is to specify the range. This works best with a named range but assuming you are importing from Excel 2003 the following example ought to work out....

Code:
docmd.TransferSpreadsheet acImport,acSpreadsheetTypeExcel9,"Temp","C:\temp.xls",Yes,"Sheet1!A3:X65536"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top