Dim fd As Object, strLocation As String
strLocation = Environ("UserProfile") & "\Desktop\"
Set fd = Application.FileDialog(2)
.Title = "Save File As"
.ButtonName = "Save As"
.InitialFileName = strLocation & "Inventory.xlsx"
If .Show Then
SaveExcelFileAs = .SelectedItems(1)
Open in new window
Dim strFileName As String
strFileName = SaveExcelFileAs()
If strFileName & "" <> "" Then
DoCmd.TransferSpreadsheet acExport, 10, "qryShipments", strFileName, True
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.