Fix Disabled XLSM Macros and VBA Buttons in Excel 2016
Question details
The user needs to restore macros and access to VBA commands in Excel 2016.

- Product
- Microsoft Excel 2016
- Device & OS
- not provided
- Scenario
- Opening macro-enabled XLSM workbooks after upgrading to Office 2016.
- Observed behavior
- Workbooks may show security warnings and have disabled macro buttons. The Visual Basic and Macros commands on the Developer tab may also be unavailable.
Confirm that the affected file is an XLSM workbook and that you trust its source before enabling any macros. Test another trusted XLSM file to see whether the issue affects one workbook or Excel more broadly.
Check Macro Security and Trusted Locations in Excel
Use this approach when a trusted workbook opens with a security warning or its macro buttons do not work.
Open the trusted XLSM workbook in Excel. If a security warning appears, select Enable Content only after confirming that the file and its macros are safe.
Go to File > Options > Trust Center > Trust Center Settings > Macro Settings. Review the current setting and choose an option that allows notification for macros, subject to your organization's security policies.
In Trust Center Settings, select Trusted Locations. If appropriate, add a secure folder you control, move the trusted workbook there, and reopen it.
If the workbook came from the internet, close Excel, right-click the file in File Explorer, and select Properties. If an Unblock checkbox appears, select it only if you trust the file, then select Apply and reopen the workbook.

Review Updates and Test Excel's VBA Commands
Use this when multiple workbooks, including newly created XLSM files, have disabled macros or unavailable Developer commands.
Work With Excel Spreadsheets in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar spreadsheet interface and support for common Excel formats, making it easier to move everyday spreadsheet work. It does not repair Excel's VBA settings, and macro compatibility varies.

Frequently Asked Questions
Why are macros disabled when I open my XLSM file?
Excel may block macros because of Trust Center settings, the file's download origin, or an organization's security policy. Check the warning in Excel and review File > Options > Trust Center > Trust Center Settings > Macro Settings.
How do I unblock a workbook I downloaded?
If you trust the file, close Excel, right-click the workbook in File Explorer, and select Properties. If Unblock is available, select it, choose Apply, and reopen the file.
What if Visual Basic and Macros are unavailable in every workbook?
Test a new XLSM workbook and check for Office updates under File > Account > Update Options > Update Now. If the commands remain unavailable, ask Microsoft Support or your IT administrator to investigate the Office installation and applicable policies.
Will WPS Office fix disabled VBA commands in Excel?
No. WPS Office is a separate office suite and cannot change Excel's VBA settings. It can handle common spreadsheet tasks, but check compatibility before relying on an existing VBA workbook.




