How to Fix VBA Editor Font Size Cannot Be Changed in Office 2021
Question details
Users are unable to change or save the font size settings within the VBA Editor in Office 2021.

- Product
- Office 2021
- Device & OS
- Windows
- Scenario
- Attempting to customize the VBA Editor appearance on high-resolution monitors with display scaling enabled.
- Observed behavior
- The font size settings in the VBA Editor fail to apply or save, often reverting back to the default size due to interference from Windows display scaling.
Ensure all Office applications, including Excel and the VBA Editor, are completely closed before adjusting your system's display settings or modifying the registry.
Temporarily Lower Windows Display Scaling
Adjust your Windows display scaling settings to a standard level (100%) before changing the font size in the VBA Editor.
High-resolution monitors and custom Windows display scaling can interfere with the VBA Editor's ability to save formatting settings. Temporarily changing the scaling allows the settings to apply properly.
Make sure Excel, Word, and any other Microsoft Office applications are completely closed to prevent settings conflicts.
Right-click on your Windows desktop and select 'Display settings'. Note your current 'Scale and layout' percentage, then temporarily change it to 100%.
Open Excel, press 'Alt + F11' to launch the VBA Editor. Navigate to 'Tools' > 'Options' > 'Editor Format' and set your desired font size, then click 'OK'.
Close Excel and the VBA Editor. Return to your Windows Display settings and revert the scaling back to your preferred percentage.

Modify the FontHeight Registry Value
Manually edit the VBA Editor registry keys to force a specific font height if display scaling adjustments fail.
Try WPS Office for a Seamless Spreadsheet Experience
If you are frustrated by display scaling bugs and interface issues in Microsoft Office 2021, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with seamless document handling.
- 1. Download the software: Visit the official WPS website and click the free download button.
- 2. Install and open: Install WPS Office and open your existing Excel workbooks directly without format loss.
- 3. Enjoy a stable experience: Experience smooth editing on any high-resolution monitor without UI scaling glitches.

Frequently Asked Questions
Why does my VBA Editor font size keep resetting in Office 2021?
This issue is often caused by a conflict between Office 2021 and Windows high-resolution display scaling. When system scaling is set above 100%, the VBA Editor fails to properly save and retain format changes.
Can I change the VBA Editor font size without changing my monitor scaling?
Usually, no. The most reliable workaround is to temporarily lower your Windows scaling to 100%, apply the font changes in the VBA Editor, and then restore your original monitor scaling.
Does this font size issue affect Microsoft 365 or Office 2019?
While it is most commonly reported in Office 2021 running on Windows 10, similar scaling glitches can occasionally occur in other versions when working across multiple high-resolution monitors with varying scaling percentages.




