Winterpixel
2/23/2019 - 4:58 PM

Export An Entire Workbook to PDF

Sub PDFWorkbook()
    Dim fileName As String
    fileName = ActiveWorkbook.FullName
    If InStr(fileName, ".") > 0 Then fileName = Left(fileName, InStrRev(fileName, ".") - 1)
    ActiveWorkbook.ExportAsFixedFormat xlTypePDF, fileName & ".pdf", _
                                       xlQualityStandard, , , , , True
End Sub