Gavin Harrison
New Member
- Joined
- May 2, 2017
- Messages
- 34
Hi all.
I'm hoping you can help.
I have a excel sheet, with a macro to export as a PDF. See below, But I would like to either set the destination folder or initiate the save as dialogue box so the user can set the location the export is saved.
If anyone can help in updating the below code to incorporate that, I would very much appreciate it.
Sub Save_Excel_as_PDF()
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, FileName:=Sheets("Great Rooms Report").Range("AI3").Text _
MsgBox "Your report has been saved as: " & Range("AI3").Value & "."
End Sub
Many Thanks
Gavin
<tbody>
</tbody>
I'm hoping you can help.
I have a excel sheet, with a macro to export as a PDF. See below, But I would like to either set the destination folder or initiate the save as dialogue box so the user can set the location the export is saved.
If anyone can help in updating the below code to incorporate that, I would very much appreciate it.
Sub Save_Excel_as_PDF()
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, FileName:=Sheets("Great Rooms Report").Range("AI3").Text _
MsgBox "Your report has been saved as: " & Range("AI3").Value & "."
End Sub
Many Thanks
Gavin
<tbody>
</tbody>