We are running VBA in Access 2007 and trying to create an Excel 2007 spreadsheet. We are using the following format:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Table/Query Name Here", "FileNameHere".
as
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "DimWebSample_Final", gsExportFilePath & gsExportFileNameBody & "_" & Month(gdDate) & Day(gdDate) & Year(gdDate) & "_" & gsDatasetExportFileSuffix(giDatasetID) & ".xls", True
I have Excel 2007 on my computer, but using acSpreadsheetTypeExcel9 creates Excel 87 or 2000 spreadsheets according to Access 2007 help. That is what we get. The help does not list another acSpreadsheetTypeExcelnn constanct to useu for 2007 results.
How would I get it to creates an Excel 2007 spreadsheet?