After working multiple days on an Excel worksheet with lots a data, charts en Macro’s the worksheet somehow crashes today. Altough I haven’t found out what iniated the problem (maybe the installation of Adobe Reader X?) I have found a “solution” to the problem.
First of all the symptoms.
After opening an Excel 2010 worksheet, with the Macros enabled (“Enable Content”), the worksheet can’t be saved. Saving the worksheet, or clicking on the Macros button (on the Developer tab), results in a crashing worksheet.
In the event log the followin error is logged:
Faulting application name: EXCEL.EXE, version: 14.0.4756.1000, time stamp: 0x4b9c0870
Faulting module name: VBE7.DLL, version: 7.0.15.90, time stamp: 0x4b7b2131
Exception code: 0xc0000005
Fault offset: 0x0000000000220b24
Faulting process id: 0x186c
Faulting application start time: 0x01cbcce7fe8ef29f
Faulting application path: C:Program FilesMicrosoft OfficeOffice14EXCEL.EXE
Faulting module path: C:PROGRA~1COMMON~1MICROS~1VBAVBA7VBE7.DLL
Report Id: 46c04576-38db-11e0-9560-8697dfeafdc5
Since the error only occurs when Macros (or VBA) is enabled, and the error references VBE7.DLL, I suspected the error to be in the VBA area.
After some research I found out that a bad / corrupt reference is causing the problem.
Although clicking Macros causes Excel to crash, clicking Visual Basic doesn’t. So let’s click it.
Next, open the project references dialog (Tools > References).
In this dialog (References – VBAProject) deselect a few references and acknowledge. You won’t be able to deselect references that are used, Excel will prevent you from this.
I deselected the reference “Microsoft Office 14.0 Object Library” and “OLE Automation”.
Now you can save the worksheet (and use Macros), the problem is solved!
PS: After saving the worksheet you can select the same references you deselected before.
Ingmar Verheij
worked perfectly for me!
Awesome!
Much appreciated! Finally came across this after 4 hours of trial and error headaches. I thought I was in a world of crap. You’re the best Ingmar! I wonder what effects turning these off have now. To be honest, it doesnt matter! My spreadsheet is saved!
OMG, thanks! I’ve wasted hours of work today because of this crashing. This fixed it. I might be able to deliver on time now!
6 years later and your post is still valid. My budget spreadsheet started crashing today for no obvious reason. Been using it with Quicken for years. You saved my bacon and my sanity.
Hi – Do you have to do this on every single Excel sheet that’s macro enabled? I have the same exact issue that my user’s reporting but it only happens in several random Excel sheets in his network drive.
Cheers.
Much appreciated! Thanks for sharing this fix!
Worked like a charm.. Thanks for the fix.
It worked!!!!! Thanks bro
Thank you so much!