Save Sheet as PDF
Create a new Button on sheet “Save as PDF” for example and attach the following code to it.
Open the Developer tab – Click here to see how to, we use this tab allot. – The starting point
Change – Sheets(Array(“SheetName“)).Select – To be the name of your sheet – Sheet1 – Export – PDF Sheet etc.
Dim Ws As Worksheet
Dim Filename As String
Dim saveLocation As String
saveLocation = Application.GetSaveAsFilename( _
fileFilter:=”PDF Files (*.pdf), *.pdf”)
If saveLocation <> “False” Then
ActiveSheet.ExportAsFixedFormat xlTypePDF, saveLocation, xlQualityStandard
This will display a “Save as” window to let you pick the location of where to save the PDF.