Excel/365 VBA crash issues recently

picklefactory

Well-known Member
Joined
Jan 28, 2005
Messages
508
Office Version
  1. 365
Platform
  1. Windows
Hi folks
Just wondering if anyone else has been seeing any VBA crash issues over the past few months? We run Office 365 Business and have a fair number of WB's in network folders, the vast majority being WB's that we've run seamlessly for years with only simple VBA and nothing has changed there. Over the past few months we get random crashes/debug issues where one person tries to open a WB, and it either totally fails to run the VBA or they get a debug issue. Somebody else can open exactly the same WB on a different machine and it runs fine, once it has functioned OK on the 2nd machine, it then also runs fine again on the machine where it previously crashed. When it fails to run the VBA at all, it will also lock you out of all the code, the project library still displays all the sheets/forms/modules etc, but just ignores you if you try to view the code, no error message at all, just hangs.
If it does try and run, and we can get a debug error, it will hang on a random item of code, rarely the same thing twice, then the only two workarounds I've found are to either:
1. Stop the code running, copy whatever sub it has stuck on, delete that sub and just paste the exact same bit of code back where it was. It then runs fine.
2. Stop the code, add a random Reference library in, run the compiler, remove the temp Reference again and re-run the compiler, and all works fine.
It seems to me to be some sort of compile issue, as I think both of those methods above will force it to compile, but it rarely repeats or hangs on the same item of code. I can run a WB on my own machine a number times no problem, come to run it again and it crashes, I haven't managed to find any clue as to what could be a trigger for this seemingly random behaviour, but I really think it's a Microsoft issue.
This happens now on, I think, all of our macro enabled WB's, I've checked all the permissions (Which haven't changed anyaway), Trust centre settings etc, our IT team manage Win updates. There is definitely nothing wrong with the code, as these are long proven WB's, and it has now affected so many.
I've been aGoogling and I'm finding numerous similar questions raised on the MS Community without yet being able to find a definitive cause or fix, so being as it seems to be an issue affecting Excel specifically, I thought I'd ask here with so many users to see if anyone else is seeing it?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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