Office Apps Crashing

Fix Excel 2021 Causing Windows 11 Restart When Opening Macro Workbooks

Muhammad TalhaMuhammad Talha Nov 13, 2026 868 views

Question details

User needs to diagnose a full Windows 11 restart that occurs when opening macro-enabled workbooks in Excel 2021, and requires safe-mode, update, Event Viewer, driver, and hardware troubleshooting steps.

Fix Excel 2021 Causing Windows 11 Restart When Opening Macro Workbooks
Product
Microsoft Excel 2021
Device & OS
Windows 11
Scenario
User opens an Excel workbook containing macros and the computer restarts instead of showing a normal Excel error.
Observed behavior
A full computer restart occurs when opening a macro workbook in Excel 2021.
Before you start

Save all open work and close unnecessary applications before testing. Copy the macro workbook to a local drive, such as the Desktop, so external storage or network issues do not affect the test.

Solution 1Recommended

Open Excel in Safe Mode and Test the Workbook with Macros Disabled

Use this first to isolate whether the restart is caused by macro content, an add-in, or Excel's normal startup environment.

A full computer restart is not a normal Excel error. Safe Mode loads Excel without add-ins and startup customizations, and leaving macros disabled helps you test the file without executing its VBA code.

1
Launch Excel in Safe Mode

Press Windows + R to open the Run dialog, type excel /safe, and press Enter.

2
Open the workbook without enabling macros

In Excel, go to File > Open > Browse, select the macro workbook, and open it. If a security warning appears, choose Disable Macros or leave macros disabled.

3
Check whether the restart still occurs

Use the workbook for several minutes with macros disabled. If the PC remains stable, the macro code or an add-in is likely the trigger.

4
Adjust macro security settings

Go to File > Options > Trust Center > Trust Center Settings > Macro Settings, select Disable VBA macros with notification, then click OK.

Open Excel in Safe Mode and Test the Workbook with Macros Disabled
Trust macro sources: Only enable macros from workbooks you trust. If the workbook came from an unknown sender, keep macros disabled and scan it with antivirus software.
Free Microsoft Office alternative

Avoid Excel 2021 Restart Issues by Using WPS Office for Macro Workbooks

If Excel 2021 keeps restarting your Windows 11 PC when you open macro workbooks, WPS Office offers a free, lightweight alternative with a familiar ribbon interface. It supports Excel XLSX and macro-enabled XLSM files and lets you review macro prompts before enabling them, making migration from Microsoft Office smooth.

Opens Excel XLSX and macro-enabled XLSM files without a Microsoft 365 subscriptionFree and lightweight, reducing the system load that can trigger unexpected Windows restarts on unstable or older PCsFamiliar ribbon-based interface for a seamless transition from Microsoft ExcelMacro security prompts help you review VBA content before enabling macrosCompatible with Microsoft Word, Excel, and PowerPoint document formats
microsoft office alternative - wps office

Frequently Asked Questions

Why does my entire PC restart only when I open Excel 2021 macro workbooks?

A full restart usually points to a system-level problem such as a driver conflict, hardware fault, overheating, or power issue that is triggered when the macro executes. Start Excel in Safe Mode by pressing Windows + R, typing excel /safe, and opening the workbook with macros disabled to isolate the cause.

How can I open an Excel workbook without enabling macros?

In Excel, go to File > Open > Browse, select the file, and choose Open. When the macro security warning appears, select Disable Macros. You can also set File > Options > Trust Center > Trust Center Settings > Macro Settings to Disable VBA macros with notification.

What does a Kernel-Power 41 error in Event Viewer mean after the restart?

It indicates that Windows shut down unexpectedly, often because of power loss, overheating, or a hardware or driver failure. Open Event Viewer by right-clicking Start > Event Viewer and check Windows Logs > System around the restart time.

Can WPS Office open Excel macro workbooks safely?

Yes. WPS Office supports Excel XLSX and macro-enabled XLSM files and shows macro security prompts so you can review or disable macros before running them.

Should I enable macros from a workbook I received by email?

Only if you trust the sender and have scanned the file with updated antivirus software. In Excel, keep macros disabled by default and use Trust Center settings to enable them only for specific trusted documents.