anto.danny
Registered User.
- Local time
- Today, 13:35
- Joined
- Nov 8, 2015
- Messages
- 35
Greetings
I'm using the below code to export m table to excel and then open it.
Now the excel file gets saved where the access file is located in, but I want it to save in a custom location say for eg: On the Desktop.
Also I want only four of the columns in the table to be exported to excel.
Thanks in advance
I'm using the below code to export m table to excel and then open it.
Code:
Dim curPath As String
curPath = CurrentProject.Path & "\MaintenanceData- " & _
Format(Date, "mm-dd-yyyy") & ".xlsx"
DoCmd.TransferSpreadsheet acExport, 10, "Installed Runway Equipment Data", curPath, -1
Application.FollowHyperlink curPath
Now the excel file gets saved where the access file is located in, but I want it to save in a custom location say for eg: On the Desktop.
Also I want only four of the columns in the table to be exported to excel.
Thanks in advance