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

ADO Excel error - External Table not in expected format

Status
Not open for further replies.

LARiot

Programmer
Feb 7, 2007
232
Hi and thanks any help on this.

I have ADO code that opens an excel file and imports into an Access table. This works fine on every excel file being imported except for one for which I get this error message:

Run-time error: '-2147467259 (8004005)':

External table is not in the expected format.

I've tried opening and saving the file from excel but it hasn't changed anything. Does anyone have an idea why this might be happening?

BTW, the code can be found here:
...however seeing as it works fine for some of the .xls files I can't imagine it needing change.

Thanks again.

-Neema
 
Someone suggested that the file is saved in Excel 2007 format and this is a problem for Access 2003.

So I save the workbook in Excel 2003 format. It imports it fine until I reboot the machine. Then it gives me the same error.

Maybe I should call a witch doctor.

-Neema
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top