Avatar of durick
durick
Flag for United States of America asked on

DoCmd.TransferSpreadsheet acImport works with .xls but fails with .xslx files

code.txt

.xls files import fine
but .xslx files are all garbage characters
SAMPLESPEC.xls
SAMPLESPEC.xlsx
Clipboard01.jpg
Clipboard02.jpg
Microsoft AccessMicrosoft Applications

Avatar of undefined
Last Comment
Eric Sherman

8/22/2022 - Mon
Eric Sherman

Which version of Access are you using???

For XLSX files you would probably need Access 2007 and later versions.

ET
crystal (strive4peace) - Microsoft MVP, Access

here are different AcSpreadSheetType types

https://msdn.microsoft.com/en-us/library/office/ff196017.aspx
durick

ASKER
I'm runing Access 2003, with Excel 2013
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
crystal (strive4peace) - Microsoft MVP, Access

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Eric Sherman

XLS is the default file format for the 2003 version of Excel and older while XLSX for versions since 2007

Save the .XLSX file as .XLS if you are using Access 2003.

ET