VBA & Macro Problems

Fix Excel VBA Buttons Changing Size and Font Unexpectedly

WPS EditorWPS Editor Oct 9, 2026 871 views

Question details

The user needs to troubleshoot worksheet buttons that are spontaneously changing their size and font size.

How to Fix Excel VBA Buttons That Change Size and Font Unexpectedly
Product
Microsoft Excel
Device & OS
not provided
Scenario
Interacting with or viewing a macro-enabled Excel workbook containing command buttons.
Observed behavior
ActiveX command buttons unexpectedly resize or change their apparent font size, even though their actual properties remain unaltered.
Before you start

Before making changes to your workbook's controls, ensure your Microsoft Office installation is fully updated, as rendering bugs are frequently patched in newer versions.

Solution 1Recommended

Replace ActiveX Controls with Form Controls

Form Controls are natively more stable in Excel and are not prone to the rendering glitches that affect ActiveX controls.

The unexpected resizing behavior is a known rendering issue specific to ActiveX command buttons in Excel. This often happens when moving between monitors with different display scalings. Using standard Form Controls provides the exact same macro-triggering functionality without the scaling bugs.

1
Delete the problematic ActiveX buttons

Go to the Developer tab, turn on 'Design Mode', select the misbehaving ActiveX buttons on your worksheet, and press the Delete key.

2
Insert a Form Control button

Still on the Developer tab, click 'Insert'. Under the 'Form Controls' section (not ActiveX Controls), select the 'Button' icon.

3
Draw the button and assign a macro

Click and drag on your worksheet to draw the new button. The 'Assign Macro' dialog box will appear immediately. Select your existing VBA macro from the list and click 'OK'.

Replace ActiveX Controls with Form Controls
Permanent Fix: Form Controls use a simpler rendering method and will maintain their exact size and font regardless of screen resolution or zoom level.

Create Stable Macro Buttons with WPS Office

If you frequently encounter ActiveX rendering bugs in Microsoft Excel, consider using WPS Spreadsheet. It fully supports VBA macros and offers highly stable built-in Form Controls, ensuring your interactive workbooks look perfect on every screen.

  1. 1. Open your macro workbook in WPS Office: Launch WPS Spreadsheet and open your existing .xlsm file. WPS will safely load your VBA code.
  2. 2. Access the Developer tools: Navigate to the Developer tab on the top ribbon to access the macro and control insertion features.
  3. 3. Insert a reliable Form Control: Click 'Insert', select a Button control, draw it on your sheet, and easily map it to your existing VBA macro.
Seamless compatibility with Microsoft Excel macro-enabled formats (.xlsm)Stable rendering of buttons and controls across different display scalingsFree, lightweight, and features a familiar user interface for easy migration
microsoft office alternative - wps office

Frequently Asked Questions

Why do ActiveX buttons resize randomly in Excel?

This is a well-known rendering bug associated with ActiveX controls in Microsoft Office. It is frequently triggered by changing screen resolutions, switching between multiple monitors with different DPI scalings, or modifying the worksheet's zoom level.

What is the difference between ActiveX and Form Controls?

Form Controls are native, simpler controls built directly into Excel that offer high stability and ease of use. ActiveX controls are older, more complex components that offer advanced event-handling (like mouse hover events) but are notoriously prone to display and scaling glitches.

Will my VBA code still work if I switch to Form Controls?

Yes. As long as your VBA code relies on a standard click event (e.g., clicking a button to run a subroutine), you can simply assign that same macro to a Form Control button or a standard Shape without rewriting any code.