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
 
Joined
Apr 12, 2017
Messages
1
Reaction score
0
Good afternoon,

I am actually trying to solve the same issue. I need access to ask me where to export a querry. I have found the string which decribes it for the import, but I am not able to put together the same for export. Dont you please have the working code? I would really appreciate that.

Thanx a lot

Alex
 

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