Fix Excel Command Buttons Not Working or Responding
Question details
The user needs to restore functionality to Excel command buttons that have become unresponsive or cannot be clicked.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Attempting to click an ActiveX or Form Control command button to trigger an assigned macro in a workbook.
- Observed behavior
- The command button fails to execute its macro. It may display a selection outline regardless of the Design Mode status, indicating it cannot be interacted with as a functional button.
Make sure your workbook is saved in a macro-enabled format (such as .xlsm) and that macros are fully enabled in your Trust Center settings.
Disable Design Mode and Clear Selection
If Excel is stuck in Design Mode or the button object is actively selected, clicking the button will only highlight it rather than run the macro.
ActiveX command buttons behave differently depending on the workbook's current state. Design Mode is specifically for editing controls, completely preventing them from running.
Sometimes, even if Design Mode appears to be turned off, the button remains selected with an outline, stopping the macro from firing.
Click on the Developer tab located in the top Excel ribbon.
Locate the 'Design Mode' button in the Controls group. If it has a gray background indicating it is active, click it to turn it off.
Click on any empty cell in the worksheet to remove focus from the command button, then try clicking the button normally to execute the macro.

Create a Test Button to Isolate the Issue
Adding a brand new button helps determine whether the issue is isolated to a single corrupted button or affects the entire workbook's macro capabilities.
Create and Run Macros Smoothly with WPS Office
WPS Office provides an intuitive Developer environment for managing macros and form controls. It allows you to easily insert, configure, and execute command buttons without the complex ActiveX conflicts often found in other spreadsheet software.
- 1. Open your workbook: Open your macro-enabled workbook (.xlsm) in WPS Spreadsheet.
- 2. Access the Developer tools: Navigate to the Developer tab on the top ribbon.
- 3. Insert a Form Control: Click Insert and select a Button from the Form Controls menu to add it to your sheet.
- 4. Assign and run: Assign your desired macro to the button and click it to execute seamlessly.

Frequently Asked Questions
Why does my Excel command button have a green outline and won't click?
The green outline indicates the shape or object is currently selected for editing, rather than being interacted with as a button. Press the ESC key or click on any blank cell to deselect it, ensuring Design Mode is turned off, before trying to click it again.
Do ActiveX command buttons work on Mac?
No, ActiveX controls rely on Windows-specific technologies and will not work on macOS. If you are sharing the workbook with Mac users, you should use standard Form Controls instead of ActiveX controls to ensure the buttons function properly.
How do I enable macros if my buttons are disabled by security settings?
Go to File > Options > Trust Center > Trust Center Settings > Macro Settings. Select 'Enable VBA macros' (or 'Enable all macros' depending on your version), check 'Trust access to the VBA project object model', and then restart your application.




