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!

Import spreadsheet formatting error

Status
Not open for further replies.

Stuartp

Technical User
Feb 22, 2001
178
GB
I am using some VBA code to import a spreadsheet into a database, which is:

Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel3, "DebtCollectionS", "c:\access\DebtCollectionS.xls", True

If the spreadsheet in question is open then it works fine. However if it is not open then I get the error:

Run-time error 3274 - external table is not in the expected format

I have tried changing Excel3 to Excel9 which is the version I use, but still to no avail.

I'd really appreciate it if someone could help me solve this one!

Thanks

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top