I have a code that exports to an Excel but I want the end user to choose the name of the file and where they want it and have a pop-up that says it is done.
Code:Private Sub cmdExcel_Click() DoCmd.OutputTo acOutputQuery, "qryResults", "ExcelWorkbook(*.xlsx)", "C:\users\" & Environ$("username") & "\Documents\qryResults.xlsx", , , , acExportQualityPrint End Sub