I have found this bit of code in another thread,
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryYourQueryName1", "PathName.xls", True, "WorkSheetName1"
But i get errors with the 'acSpreadsheetTypeExcel9' argument. is this a reference issue, or am i being thick.
also
What im trying to do is to export a bunch of query results to seperate worksheets in a single Excel file. I would like the code to apply the query name to its respective worksheet tab and name the workbook 'BlahBlah' & date()
however i havent a clue how to apply the query name to the worksheets. Does anyone know how to this?
Thanks for any help given.
"My God! It's full of stars...
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryYourQueryName1", "PathName.xls", True, "WorkSheetName1"
But i get errors with the 'acSpreadsheetTypeExcel9' argument. is this a reference issue, or am i being thick.
also
What im trying to do is to export a bunch of query results to seperate worksheets in a single Excel file. I would like the code to apply the query name to its respective worksheet tab and name the workbook 'BlahBlah' & date()
however i havent a clue how to apply the query name to the worksheets. Does anyone know how to this?
Thanks for any help given.
"My God! It's full of stars...