Prompt for file location Export to Excel

P

Proko

I am currently using the following line of code to export the results of a
query to an Excel spreadsheet.
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel7,
"qry_dataoutput", "c:\temp\test.xls"

Is it possible for the user to be able to select where the xls file will be
written rather than the file always going to the same destination.

Thanks in advance.
Proko
 

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