logo
search
Printing Problems

How to Fix an Excel Workbook That Will Not Save as PDF

Khadija KhanKhadija Khan Oct 9, 2026 871 views

Question details

The user is trying to export or save a macro-enabled Excel workbook as a PDF, but receives an error stating the document was not saved.

How to Fix an Excel Workbook That Will Not Save as PDF
Product
Microsoft Excel
Device & OS
not provided
Scenario
Exporting or saving a macro-enabled spreadsheet to a PDF format.
Observed behavior
Excel displays an error message reporting that the document was not saved, preventing the PDF from being generated.
Before you start

Ensure that your workbook is not restricted by permissions or passwords, and verify that no other programs are currently locking your destination folder.

Solution 1Recommended

Clear the PDF/A Compliant Setting

Disabling the PDF/A compliance option often resolves export errors in macro-enabled workbooks.

PDF/A is a standardized format designed for long-term archiving. Sometimes, strict compliance settings can conflict with certain elements in macro-enabled workbooks, causing the save process to fail.

1
Open PDF Export Options

Go to File > Export > Create PDF/XPS Document, or choose Save As and select PDF from the format dropdown. Then, click the 'Options...' button.

2
Disable PDF/A Compliance

In the Options dialog box, locate the 'PDF/A compliant' checkbox under the PDF options section and uncheck it.

3
Save the Document

Click 'OK' to close the dialog, and then click 'Publish' or 'Save' to export your workbook as a PDF.

Clear the PDF/A Compliant Setting
Success Tip: Once disabled, Excel typically remembers this setting for future PDF exports.
Free Microsoft Office alternative

Export Excel Workbooks to PDF Seamlessly with WPS Office

If Microsoft Excel continues to fail when saving your workbooks as PDFs, try WPS Office. It is a highly compatible, free alternative that effortlessly opens macro-enabled files and exports them to PDF without errors.

  1. 1. Download and Install: Get WPS Office for free from the official website and install it on your computer.
  2. 2. Open Your Workbook: Launch WPS Spreadsheet and easily open your macro-enabled Excel workbook.
  3. 3. Export to PDF: Click 'Menu', select 'Export to PDF', and save your document instantly without encountering export errors.
Free and lightweight Office suiteFully compatible with Microsoft Excel (.xlsx, .xlsm)Built-in, stable PDF conversion toolsFamiliar user interface for seamless migration
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel fail to save my macro-enabled workbook as a PDF?

This commonly happens due to strict PDF/A compliance settings in the export options, corrupted worksheet data, or third-party COM add-ins interfering with Excel's native PDF converter.

What is the difference between Export to PDF and Print to PDF?

'Export to PDF' uses Excel's built-in converter which preserves formatting, hyperlinks, and bookmarks. 'Print to PDF' acts as a virtual printer, creating a visual flat document which is an excellent workaround when standard export fails.

How can I tell if my Excel workbook is corrupted?

If a specific workbook fails to save as a PDF but a blank, newly created workbook exports successfully, your original file may have corrupted data. You can often resolve this by manually copying your worksheet content into a fresh workbook.

Can I repair Microsoft 365 to fix PDF saving issues?

Yes. If clearing the PDF/A option and disabling add-ins does not work, go to your Windows Control Panel, select Programs and Features, right-click Microsoft 365, and choose 'Change' to run an Online Repair.