Teddy B
Jul 9 2010, 02:41 PM
is there a way(VBA code or Macro) to change the name of a query upon export to an excel file using Transferspreadsheet? The purpose being I don't want to result tab name to be the same as my query name.
Example: I want to export the query (qry_001_002) to the file (c:file/export.xls) but want the resulting tab name to say (Summary).
vtd
Jul 10 2010, 04:34 AM
Properly, I think you need to automate Excel by code, open the export file and change Worksheet name.
A lazy work-around is to copy the Query to the required name "Summary", then use the Query "Summary" for the TransferSpreadsheet then delete the Query "Summary". But then, you can simply rename the Query to "Summary" permanently and not to bother with copying every time?