How to export to a specific excel worksheet?

G

Guest

Hello,


I need to export a query to a specific excel worksheet.

I use the "transfertspreadsheet" method.
How do I specify the worksheet?

By default it pastes the data into a new sheet with the name of the excel
workbook.
 
P

paco paz via AccessMonster.com

Hello, i can´t understand how to put this code, can you help me please, how?

In this code:

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"YourTableName", "C:\YourSpreadsheet.xls", , "SheetName"

"YourTableName" - Here im put the name of my table to access or to excel?

Can you send me to a complete example, please.
 

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