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.
 

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