I have the following statement which exports data based on a query to a .xls:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryreportsbydate", "C:\Documents and Settings\pdainty\Desktop\RawQualityData_Weekly.xls "
This works fine it exports the data and names the sheet...