Export to excel 2010

billmark

Registered User.
Local time
Today, 01:31
Joined
Mar 28, 2012
Messages
25
Hi
My database has been migrated from access 2003 to 2010 and I have vba code to export the report to excel. I want the excel to be 2010 version and change my code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "New abc_ImportXLS", "C:\Temp.xlsx", False
but I got the message that the format is incorrect. After I changed back to
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "New abc_ImportXLS", "C:\Temp.xls", False
it can be exported with compatibility mode.
Please advise how to change the version to excel 2010.

Appreciate your help.

Regards
Bill
 
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, "New abc_ImportXLS", "C:\Temp.xlsx", False
 

Users who are viewing this thread

Back
Top Bottom