Prompt for file location Export to Excel

  • Thread starter Thread starter Proko
  • Start date Start date
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
 
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
 
Back
Top