J
JR_06062005
I used the following code to export an Access query to a formatted Excel
spreadsheet:
DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, stFilename, False
It works fine except that the name of the spreadsheet is set to the name of
the query. Is there a way to set the name of the spreadsheet (not the
workbook, I've solved that problem)? I've also tried the TransferSpreadsheet
method and it also assigns the query or table name being exported as the
sheet name.
Any help would be appreciated.
spreadsheet:
DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, stFilename, False
It works fine except that the name of the spreadsheet is set to the name of
the query. Is there a way to set the name of the spreadsheet (not the
workbook, I've solved that problem)? I've also tried the TransferSpreadsheet
method and it also assigns the query or table name being exported as the
sheet name.
Any help would be appreciated.