Uses Excel’s print layout to save the workbook as a PDF file.
Inputs and settings
- Source workbook · An absolute local .xlsx or .xlsm path. Choose a new file for output.
- Output PDF · An absolute path for a new local .pdf file.
Outputs
- PDF path · The full path of the new file.
- Fire · Continues when Excel completes the operation.
Example
Use a path such as C:ReportsOrders.pdf. The PDF follows the workbook print areas and excludes Office document properties.
Requirements
Requires Microsoft Excel Desktop activated for this Windows user and a local NTFS drive. Excel Desktop uses its own Excel process with macros disabled. Use workbooks without external data connections, embedded active content or a workbook password.
Outputs are new files with permissions restricted to the current user.
Common errors
Choose another name if the output already exists. For a missing worksheet, confirm its name in Excel. Complete Office activation before rerunning.
