PDF Conversion Issues

How to Set the Default PDF Size Option When Exporting from Word

Steven ParkerSteven Parker Nov 2, 2026 868 views

Question details

The user wants to establish a permanent default choice between 'Standard' and 'Minimum size' when exporting Word documents to PDF.

How to Set the Default PDF Size Option When Exporting from Word
Product
Microsoft Word
Device & OS
not provided
Scenario
Exporting documents to PDF format frequently and wanting to bypass the manual selection of optimization size every time.
Observed behavior
Word resets the PDF optimization preference for each export, failing to provide a built-in toggle to remember the user's choice permanently.
Before you start

Ensure you have saved your current document and enable the Developer tab in Word, as you will need to create a brief VBA macro to modify this default behavior.

Solution 1Recommended

Create a VBA Macro to Fix the Default PDF Export Size

Since Word lacks a native settings toggle to lock the PDF size preference, utilizing a macro with the ExportAsFixedFormat method is the most reliable solution.

By assigning a short VBA script to your Quick Access Toolbar, you can instantly export your current document to PDF using your preferred optimization setting—either 'Standard' for high print quality or 'Minimum size' for email and web publishing.

1
Enable the Developer Tab

Go to File > Options > Customize Ribbon. In the right-hand pane, check the box next to 'Developer' and click OK.

2
Open the Visual Basic Editor

Navigate to the Developer tab on your ribbon and click 'Visual Basic', or simply press Alt + F11 on your keyboard.

3
Insert a New Module

In the Visual Basic Editor, click 'Insert' from the top menu and select 'Module' to open a blank coding window.

4
Add the PDF Export Macro Code

Paste a VBA script using the Document.ExportAsFixedFormat method. To set 'Minimum size' as default, ensure the OptimizeFor parameter is set to wdExportOptimizeForOnScreen. For 'Standard', use wdExportOptimizeForPrint.

5
Pin the Macro to the Quick Access Toolbar

Close the editor, then go to File > Options > Quick Access Toolbar. Choose 'Macros' from the 'Choose commands from' dropdown, select your new PDF export macro, and click 'Add' to place it on your toolbar for one-click access.

Create a VBA Macro to Fix the Default PDF Export Size
Macro Security Check: You may need to adjust your macro security settings under File > Options > Trust Center > Trust Center Settings > Macro Settings to allow your custom export macro to run properly.
Free Microsoft Office alternative

Easily Export and Compress PDFs with WPS Office

If writing and managing VBA macros seems too complicated, consider using WPS Office. Its built-in PDF export tool comes with a highly intuitive interface that allows you to seamlessly select your output size, adjust image qualities, and generate PDFs without any coding.

  1. 1. Open your document in WPS Writer: Launch WPS Office, open WPS Writer, and load the document you wish to convert.
  2. 2. Access the PDF Export tool: Click on the 'Menu' button in the top-left corner or go to the 'Tools' tab, then select 'Export to PDF'.
  3. 3. Customize and export: In the export dialog box, choose your desired save path and output quality (Standard or compressed), then click 'Export' to generate your file.
Built-in PDF export tool with visual compression and quality settingsHigh compatibility with Microsoft Word (.docx) formatsNo VBA coding required to customize PDF output sizeFree, lightweight, and user-friendly interface
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't Microsoft Word remember my PDF size choice?

Microsoft Word resets the PDF optimization setting to its factory default each time you restart the application or initiate a new export session, because it lacks a persistent global setting in its Options menu for this specific feature.

Can I use a keyboard shortcut instead of a toolbar button for the macro?

Yes. You can assign a keyboard shortcut to your VBA macro by navigating to File > Options > Customize Ribbon, clicking 'Customize' next to Keyboard shortcuts, selecting 'Macros', and assigning your preferred key combination.

Will using the ExportAsFixedFormat macro overwrite existing PDF files?

By default, if a PDF with the exact same name already exists in the destination folder, the VBA macro will overwrite it without prompting. You can modify the VBA code to include a Save As dialog prompt if you want to avoid accidental overwrites.