Exporting query to a Excel workbook

M

Maracay

Hi Guys,

Is possible to export a query to a excel file that already exist, but in a
new workbook?

Thanks
 
K

Klatuu

In Excel, a WorkBook is an Excel file. I assume you mean a WorkSheet which
is a tab in an Excel file.

Yes you can. You use the Range argument of the TransferSpreadsheet method
to pass the name of the worksheet.
 
Top