G
Guest
Hello,
I know how to Export a Query using VBA with the following:
DoCmd.TransferSpreadsheet acExport, , strQuery, strFile, True
This works fine.
However after this creates the Excel File, it names the Sheet as the Query
Name.
I know one way is that I can just change the Query name, but I need the
Query name as 1 name & the Sheet as another.
How can I programatically change the Sheet name in Excel withou having to
open it up ?
Thank you,
Jeff
I know how to Export a Query using VBA with the following:
DoCmd.TransferSpreadsheet acExport, , strQuery, strFile, True
This works fine.
However after this creates the Excel File, it names the Sheet as the Query
Name.
I know one way is that I can just change the Query name, but I need the
Query name as 1 name & the Sheet as another.
How can I programatically change the Sheet name in Excel withou having to
open it up ?
Thank you,
Jeff