
VBA Save as PDF in Excel — ExportAsFixedFormat for Sheets, Ranges and Workbooks
To save an Excel sheet, range or whole workbook as a PDF from VBA, call ExportAsFixedFormat with Type:=xlTypePDF and a full file path. This guide explains why a PDF is just a print sent to a file, why that makes your page setup decide what lands in the PDF, how to export several sheets into one file, and how to stop the run-time error 1004 that a bad path causes.





























































































































































![Excel Sum of Time Over 24 Hours — Why Your Total Resets (and the [h]:mm Fix)](/_next/image?url=https%3A%2F%2Fexcelmasterstore.blob.core.windows.net%2Fexcelmaster%2Fcms%2Fblog-assets%2Fexcel-sum-time-over-24-hours%2Fhero.png&w=1200&q=75)







































































































![How to Convert .xlsb to .xlsx — 5 Free Methods (Excel, Online, Python, VBA) [2026]](/_next/image?url=https%3A%2F%2Fexcelmasterstore.blob.core.windows.net%2Fexcelmaster%2Fcms%2Fcovers%2Fv2-launch-agent-excel.png&w=1200&q=75)





















