VBA-editor - Excel crashes

Bengt

Active Member
Joined
Mar 4, 2008
Messages
273
Office Version
  1. 365
Platform
  1. Windows
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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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
Thanks for your answer. I did try to do what you suggested, but it turned out that I couldn't actually type in any code lines. All I get is the "arrow-in-a-circle" turning around, and the screen freezes. Directly after that, the crash occurs. I have also tried to open PERSONAL.XLB to see if I could access VBA directly from that workbook, but to no avail.
 
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’).
Yes, it does happen on a brand new blank workbook. As for Excel versions, I downloaded - or rather I was instructed to download - a brand new Office version. (Using Windows 365 on a PC)
 
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.
As a matter of fact, I did try to open VBA in Word. That worked fine (i.e. I wrote a sub that only displayed a msgbox). However, when I tried to do the same in Powerpoint, the "Excel"-behavior occurred again: Powerpoint crashed but managed to get up on its feet again.
 
Upvote 0
So no error message of any kind? No prompt to send diagnostic data to M$? I'm not an OS expert by any means but am thinking there might be a Windows option to capture crash data.
Next time you start xl and don't do anything else, look at your task manager. Make sure you look at both applications AND processes. You should only see Excel listed once.
 
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’).
One thing that I would like to ask you about - probably just a shot in the dark, but I am out of possible explanations: Has Microsoft introduced something of a developer's license lately, something that you must have in order for you to use VBA?
 
Upvote 0

Forum statistics

Threads
1,225,726
Messages
6,186,669
Members
453,368
Latest member
xxtanka

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