How to Keep the Excel File Name When Printing to PDF on Mac
Question details
The user wants to automatically retain the original workbook file name when printing an Excel file to PDF on macOS.

- Product
- Microsoft Excel
- Device & OS
- macOS
- Scenario
- Converting or printing a spreadsheet to a PDF format without losing the document's original file name in the save dialog.
- Observed behavior
- When using the standard macOS Print to PDF workflow, the resulting PDF does not inherit the Excel file name because the file name is controlled by the macOS PDF printer driver, not Excel itself.
Ensure your Excel workbook is saved to your Mac with your desired file name before attempting to print or export it to a PDF.
Use the Open in Preview Option
Bypass the default print driver naming behavior by opening the PDF in Mac's Preview application first, which safely retains the workbook's name.
Because the macOS print dialog driver does not pull the source file name directly from Excel during a standard 'Save as PDF' action, routing the file through Mac's Preview app maintains the temporary file name passed by Excel.
Press Cmd + P or navigate to File > Print to open the standard macOS print dialog in your Excel workbook.
Locate the PDF drop-down menu situated at the bottom left corner of the print dialog window.
Click the drop-down and choose 'Open in Preview'. Your Mac will generate the PDF and open it in the Preview app using the original Excel file name.
Once the document is open in Preview, go to File > Save to securely save the PDF to your Mac without needing to retype the name.

Use the Built-in Export to PDF Feature
Excel's native export feature automatically retains the current workbook name natively without interacting with the Mac print driver.
Easily Save Spreadsheets as PDFs with Original Names in WPS Office
WPS Office provides a dedicated 'Export to PDF' feature that perfectly preserves your spreadsheet's original file name and layout, avoiding the macOS printer driver naming issues altogether.
- 1. Open Spreadsheet: Launch WPS Office and open your desired spreadsheet document.
- 2. Access Export Tool: Click on the 'Tools' tab located at the top of the workspace.
- 3. Click Export to PDF: Select the 'Export to PDF' button from the toolbar.
- 4. Save the File: Confirm your export settings. The original file name is automatically retained; simply click 'Export' to finish.

Frequently Asked Questions
Why does the Mac Print to PDF option change my Excel file name to 'Untitled'?
When you use the Mac Print to PDF feature, the file name generation is managed by the macOS print driver, not by Microsoft Excel. The print driver often receives the print job without the original file name string attached, causing it to default to 'Untitled'.
Is there a keyboard shortcut for Export to PDF on Mac?
Unlike Windows, where users can press Alt+F+E+A, macOS does not have a default native keyboard shortcut for Export to PDF in Excel. However, you can create a custom keyboard shortcut for it by going to Apple Menu > System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts.
Will using 'Open in Preview' change my spreadsheet's print formatting?
No, opening the document in Preview utilizes the exact same print layout, scaling, and formatting rules as the standard PDF print option. It simply intercepts the generated PDF so you can save it with the retained file name.




