TransferSpreadsheet

D

DuncanG

I'm trying to export data from a query to excel but I need the 'save as'
dialog box to prompt the user for a file name.


DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel3, "qryExcel",
"C:\Archive\FileName.xls", True

TIA,
Duncan
 

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