VBA & Macro Problems

Fix a Macro That Cannot Run in an Excel Workbook

John WilsonJohn Wilson Dec 2, 2026 869 views

Question details

The user needs to run the macro connected to the Start button in an Excel workbook.

Fix a Macro That Cannot Run in an Excel Workbook
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user opens a workbook and clicks a Start button that is linked to a VBA macro.
Observed behavior
The workbook opens, but Excel's macro security settings may prevent the button's macro from running.
Before you start

Confirm that the workbook and its macros come from a trusted source. Check whether the file has a macro-enabled extension such as .xlsm, and look for any security message when you open it.

Solution 1Recommended

Allow a Trusted Macro Through Excel's Security Notification

Use this method when Excel opens the workbook but blocks its macro without offering an enable option.

In desktop Excel for Windows, the notification setting lets you decide whether to enable macros for a trusted workbook. Avoid enabling all macros globally.

1
Open macro settings

In Excel, select File > Options > Trust Center > Trust Center Settings > Macro Settings.

2
Choose the notification option

Select Disable VBA macros with notification, then click OK to close the settings dialogs.

3
Reopen the workbook

Close and reopen the workbook. If a security warning appears, select Enable Content only after confirming that you trust the file and its source.

4
Test the button

Click the workbook's Start button again to see whether the linked macro runs.

Allow a Trusted Macro Through Excel's Security Notification
Settings may be managed: If the macro settings are unavailable or a security policy still blocks the file, contact your organization's administrator.
Free Microsoft Office alternative

Work With Excel Workbooks in WPS Office

WPS Office is a free, lightweight Office alternative with a familiar spreadsheet interface and support for common Excel formats, making it easy to move between office suites. It does not change Excel's macro security settings; VBA availability and compatibility depend on the WPS edition and platform.

Open and edit common Microsoft Excel formats, including .xlsx and .xlsUse a familiar spreadsheet interface for a smoother transition from ExcelWork with spreadsheets in a free, lightweight office suiteCheck VBA support for your WPS edition before relying on a macro-enabled workbook
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Start button open the workbook but not run its macro?

Excel may have blocked the VBA macro for security reasons. Check for a security warning when you open the file, and review File > Options > Trust Center > Trust Center Settings > Macro Settings in desktop Excel for Windows.

Should I enable all macros in Excel?

No. Choose Disable VBA macros with notification in Trust Center, then enable content only for individual workbooks you trust.

What if Excel says the macro is blocked because the file came from the internet?

If you trust the file, close it, right-click it in Windows File Explorer, and select Properties. On the General tab, check Unblock if available, then click Apply and reopen the workbook.

What if the macro settings are grayed out?

Your organization may manage Excel security settings. Contact your administrator rather than trying to bypass the policy.