K
Ken Warthen
I'm trying to use DoCmd.TransferSpreadsheet to export some Access 2007 data
to an Excell 2007 spreadsheet. I use the .xlsx file extension with my
filename, but after the code is run I try opening the newly created file from
Excel 2007 and it says it doesn't recognize the file format. Any idea on
what I may be doing wrong? TIA - Ken
strOutputFile = strPath & "\Output\UserList.xlsx"
DoCmd.TransferSpreadsheet TransferType:=acExport, TableName:="tblID",
filename:=strOutputFile, Hasfieldnames:=True
to an Excell 2007 spreadsheet. I use the .xlsx file extension with my
filename, but after the code is run I try opening the newly created file from
Excel 2007 and it says it doesn't recognize the file format. Any idea on
what I may be doing wrong? TIA - Ken
strOutputFile = strPath & "\Output\UserList.xlsx"
DoCmd.TransferSpreadsheet TransferType:=acExport, TableName:="tblID",
filename:=strOutputFile, Hasfieldnames:=True