Office Apps Crashing

Fix Excel C0000005 Access Violation When Opening a VBA Workbook

Huda QurayshiHuda Qurayshi Nov 12, 2026 869 views

Question details

Excel crashes with access violation exception code C0000005 when the user opens a workbook that contains VBA macros.

Fix Excel C0000005 Access Violation When Opening a VBA Workbook
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user needs to open and work with a VBA-enabled Excel workbook without Excel closing unexpectedly.
Observed behavior
Excel crashes while opening the VBA workbook and reports exception code C0000005, which can be related to add-ins, workbook damage, display drivers, Office installation issues, or hardware conflicts.
Before you start

Close Excel completely before testing. If the workbook is stored on a network drive or cloud folder, copy it to a local folder first so you can determine whether the crash is related to the file location.

Solution 1Recommended

Start Excel in Safe Mode and disable conflicting add-ins

Use this method first to determine whether an Excel add-in, COM add-in, or third-party integration is causing the access violation.

Safe Mode starts Excel with most extensions disabled. If the VBA workbook opens in Safe Mode, re-enable add-ins one at a time to identify the conflict.

1
Launch Excel in Safe Mode

Hold the Ctrl key while starting Excel, then select Yes when Excel asks whether to start in Safe Mode.

2
Open the VBA workbook

In Safe Mode, select File > Open > Browse and open the affected workbook from its local folder.

3
Disable Excel add-ins

If the workbook opens, restart Excel normally and go to File > Options > Add-ins. Select Excel Add-ins in the Manage list, choose Go, clear all selected add-ins, and select OK.

4
Disable COM add-ins

Return to File > Options > Add-ins, select COM Add-ins in the Manage list, choose Go, clear enabled items, and select OK. Restart Excel and test the workbook again.

5
Identify the conflicting add-in

Re-enable one add-in at a time from File > Options > Add-ins, restarting Excel and reopening the workbook after each change until the crash returns.

Start Excel in Safe Mode and disable conflicting add-ins
Macro-related integrations can trigger crashes: Temporarily disable third-party PDF tools, financial-data plugins, antivirus Office integrations, and other applications that integrate with Excel.
Free Microsoft Office alternative

Open Excel Workbooks with WPS Spreadsheets While You Troubleshoot Excel

If Microsoft Excel continues to crash, WPS Office provides a free, lightweight spreadsheet alternative with a familiar interface. You can open the workbook in WPS Spreadsheets to access compatible worksheet content and determine whether the issue is isolated to the Excel installation. Test VBA macro behavior carefully before using the file for production work.

Open and edit compatible Microsoft Excel .xlsx, .xls, and .xlsm workbook formats.Use a familiar ribbon-based spreadsheet interface for formulas, tables, charts, and worksheet review.Access workbook content while Microsoft Office repairs or updates are in progress.Lightweight installation helps you quickly test whether the crash is specific to Microsoft Excel.
microsoft office alternative - wps office

Frequently Asked Questions

What does Excel error C0000005 mean?

Exception code C0000005 usually indicates an access violation, meaning Excel tried to access memory incorrectly. Common causes include faulty add-ins, damaged workbooks, graphics-driver conflicts, Office installation problems, and hardware issues.

How do I open Excel in Safe Mode?

Hold Ctrl while launching Excel and select Yes at the Safe Mode prompt. You can also press Windows+R, type excel /safe, and select OK.

Why does only one VBA workbook crash Excel?

If other workbooks open normally, the affected file may have damaged workbook content, broken external connections, incompatible controls, or a VBA-related issue. Use File > Open > Browse > the Open arrow > Open and Repair to test the file.

Can an external monitor cause Excel to crash?

A display-driver or multi-monitor conflict can contribute to Excel crashes. Disconnect the external display or set the laptop display as primary in Windows Settings > System > Display, then test the workbook again.

Will repairing Microsoft Office remove my Excel files?

No. Quick Repair and Online Repair repair the Office application installation rather than deleting your workbooks. Close all Office apps before starting the repair from Windows Settings > Apps > Installed apps > Microsoft 365 or Office > Modify.