I am trying to export an Access query to Excel, but I would like to exclude the header row from being exported. I am using the TransferSpreadsheet command below in VBA and I have the "has field names" option set to False, but the command is still exporting the header row to my Excel spread.
Does anyone know how to accomplish this using the TransferSpreadsheet command or is there another line of code that can accomplish this? I've read from several sources that there might be a way to run the TransferSpreadsheet command first and then in the next line of code open the Excel spreadsheet and send a command to delete the first row with the header information. However, no one has been able to provided the code to do such an action.
Any help would be greatly appreciated.
DoCmd.TransferSpreadsheet acExport, 8, "qry_ExportData", "C:\401k Export.xls", False