Fix Excel 2021 Causing Windows 11 Restart When Opening Macro Workbooks
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.

- 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.
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.
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.
Press Windows + R to open the Run dialog, type excel /safe, and press Enter.
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.
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.
Go to File > Options > Trust Center > Trust Center Settings > Macro Settings, select Disable VBA macros with notification, then click OK.

Update Windows, Office, Device Drivers, and Check Event Viewer
Use this if the restart occurs even in Safe Mode or if you need to identify the failing component from system logs.
Run Hardware Diagnostics and Test the Workbook on Another Computer
Use this when software updates and Safe Mode do not stop the restart; it checks memory, overheating, power, and whether the file is the problem.
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.

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.




