VBA-editor - Excel crashes

Bengt

Active Member
Joined
Mar 4, 2008
Messages
269
Don't know if this really counts as an Excel-issue per se, but this is what has happened to me. I start Excel, try to move to the developer area so I press ALT F11 (or use the icon on the developer menu, makes no difference). The VBA editor seems to start i.e. you can see the code window, but after about five seconds Excel crashes. I have been discussing this with MS Support and we worked with it for hours on end, we have uninstalled Office, deleted Office and downloaded a new copy and installed it again but to no avail. Has anyone had a similar experience? Maybe worth noting too, that this happened from one day to the next. No change in hardware.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
It only happens with one workbook, or at least not every one you try to open?
 
Upvote 0
It only happens with one workbook, or at least not every one you try to open?
It seems to happen with any workbook. For a while, I thought the problem had solved itself when I opened a workbook with lots of modules and macros and whatnot, and then I could at least write a few Code Lines, but it didn't take long before this attempt also made Excel crash. Or rather, Excel itself is alive and well, and I can run macros from a spreadsheet, for instance, but as soon as I pull up the VBA editor, this happens.
 
Upvote 0
Does it happen on a brand new blank workbook?

I am not sure what version of Office you are running, but I assume that after you did the re-install, you were sure to also updates any and all patches & updates?
Note: I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’).
 
Upvote 0
A couple of things you can try here, although the discussion is 6 years old.

I'd open a new wb as suggested, then add a simple sub (don't import or copy one from any other wb). Your test sub would do something simple such as a message box. Save, close, reopen and see what happens when you try to edit. The code in the problem workbooks is compiled, yes? In Access there is an option to decompile then compile but I don't know if Excel has that.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top