Forum Discussion
The_Real_Phil_S
May 21, 2022Copper Contributor
Access VBA Syntax for Excel Output
Hi Guys I am trying to update an Access application. Currently there is VBA code included to output results in Excel format. The application is old so the output files produced are in an old Ex...
- May 21, 2022
To export as .xlsx file use one of the following:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "exceltemp", "G:\DM_Report_Test\temp.xlsx"
OR
DoCmd.TransferSpreadsheet acExport, 10, "exceltemp", "G:\DM_Report_Test\temp.xlsx"
isladogs
May 21, 2022MVP
To export as .xlsx file use one of the following:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "exceltemp", "G:\DM_Report_Test\temp.xlsx"
OR
DoCmd.TransferSpreadsheet acExport, 10, "exceltemp", "G:\DM_Report_Test\temp.xlsx"
The_Real_Phil_S
May 22, 2022Copper Contributor
- isladogsMay 22, 2022MVPYou're welcome