A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Public Sub PDFv_Export()
Dim vntReturn As Variant
vntReturn = Application.GetSaveAsFilename(InitialFileName:=strFilename, _
FileFilter:="PDF-File (*.pdf), *.pdf)", Title:="Generate PDF")
If vntReturn <> False Then
Call ThisWorkbook.ExportAsFixedFormat(Type:=xlTypePDF, _
Filename:=vntReturn, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True)
End If
End Sub
Paste into a simple "Button" control. As far as I've tested it works.