Transfer Data to Specified Excel tab

J

jw22

I am sending queries to an Excel workbook via Transferspreadsheet in Macros.
Is it possible to specify a name that a query transfers to Excel as?

i.e. Transfer Query [IC_BRT_Report] to a tab named "BRT" in Excel, not a
tab named "IC_BRT_Report".
Thanks.
jw22
 
K

Ken Snell MVP

Exporting to an existing worksheet that was not originally created by a
TransferSpreadsheet action may have some problems. See this article:
Using the Range Argument of TransferSpreadsheet when Exporting Data to an
EXCEL File
http://www.accessmvp.com/KDSnell/EXCEL_ImpExp.htm#ExpRange

Best approach is to rename the query to the same name as the worksheet, but
that too may not be successful if the worksheet was not created originally
by a TransferSpreadsheet action.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top