How to Fix Excel VBA Error 35010 and VBE7.DLL Crashes
Question details
Users experience Excel crashing during long-running tasks, returning error 35010 associated with the VBE7.DLL file.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Running long VBA tasks or compiling code that involves 64-bit VBA callbacks and AddressOf statements.
- Observed behavior
- Excel VBA crashes with error 35010, the VBE7.DLL module fails, and it may corrupt other open files.
Close all running instances of Excel and ensure you have administrative permissions on your Windows PC to check system file properties and install updates.
Verify VBE7.DLL Version and Update Microsoft Office
Microsoft has released a patch for this bug in VBE7.DLL version 7.1.11.33. Updating Office is the most permanent fix.
The root cause of error 35010 is a confirmed bug within the 64-bit VBE7.DLL file, specifically version 7.1.11.31. By updating to version 7.1.11.33, the compilation crashes are resolved.
Open File Explorer and navigate to C:\Program Files\Microsoft Office\root\vfs\ProgramFilesCommonX64\Microsoft Shared\VBA\VBA7.1.
Right-click on the VBE7.DLL file, select 'Properties', and navigate to the 'Details' tab. Check the file version to see if you are running the problematic 7.1.11.31 build.
Open Excel, click on 'File' in the top-left corner, and select 'Account' from the sidebar. Click 'Update Options' and choose 'Update Now' to download the latest fix.

Troubleshoot AddressOf Statements and Disable Compile on Demand
If updating Office is not immediately possible, modifying your VBA code and editor settings can significantly reduce the frequency of the crash.
Try WPS Office for a Stable Spreadsheet Experience
Since Excel Error 35010 is deeply tied to Microsoft's 64-bit VBA compilation engine, consider switching to WPS Office. WPS offers a robust, highly compatible spreadsheet tool that handles complex data smoothly.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package.
- 2. Install the software: Run the installer and follow the on-screen instructions to set up WPS Office on your Windows PC.
- 3. Open your workbooks: Launch WPS Spreadsheet and open your existing Excel files directly with full formatting compatibility.

Frequently Asked Questions
What causes Excel VBA Error 35010?
Error 35010 is caused by a bug in the 64-bit version of Microsoft's VBE7.DLL file (specifically version 7.1.11.31), typically triggered when the compiler processes AddressOf statements and callback functions.
Where can I find the VBE7.DLL file to check its version?
The file is typically located at C:\Program Files\Microsoft Office\root\vfs\ProgramFilesCommonX64\Microsoft Shared\VBA\VBA7.1. You can check the version by right-clicking the file, selecting Properties, and viewing the Details tab.
Does disabling Compile on Demand completely fix the crash?
No. While disabling Compile on Demand in the VBA Editor settings (Tools > Options > General) can significantly reduce the frequency of the crashes, it does not completely eliminate the root cause.
Can unused AddressOf callbacks trigger this error?
Yes. Even if the AddressOf callback procedures are not executed during runtime, simply having them present in your VBA code can trigger the compilation error in the affected VBE7.DLL version.




