I created a function to export five Access queries out into five sheets in the same Excel 2016 workbook using:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "QueryName", C:\Path\ExcelFileName, , "SheetName"
Sometimes I run it and it runs fine. It creates the workbook and...