Excel behaves like EnableEvents set False when it is still set True

Ronnie101

New Member
Joined
Apr 30, 2013
Messages
1
I work in a corporate environment using Excel 2003 and 2007. We have developed many spreadsheets that use events to operate correctly - for example, when a dropdown's value is changed then SQL queries are run to repopulate a set of ranges with the correct lookup values.

However, after an unpredictable time in use, the Excel session stops responding to events as though Application.EnableEvents were set to False, even though Application.EnableEvents is still set True.

It's an issue with Excel itself, since if you close and reopen the spreadsheet in the same Excel session the same fault continues to show, but if you close Excel completely and reopen the sheet in a new Excel session the fault has gone (until it re-occurs some random time later).

It seems to happen to all of us in the department. We first noticed the issue about 18 months ago so it may be some issue with a certain Service Pack or update from then?

Our support staff have no idea how to fix it. Has anyone else here got any suggestions?

Thanks!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi Ronnie and Welcome to the Board,

It could help to rule-in or out a few possibilities....

1. It's possible that VBA execution stopped at an unhandled error which would preclude you from running other code until VBA is reset. Test by trying to run a standard macro from a button or the Alt-F8 menu after your Events have stopped responding.

2. Similarly, VBA could be running and not stopped (ie, caught in a loop). When in the VB Editor, check to see if "[running]" appears in the VB Editor Title after the filename.

3. Is it possible that the events are triggering, but the event code procedure is being exited before it does the steps you are expecting? If you're not sure, place a breakpoint or Msgbox statement at the beginning of the procedure.

4. Have you tried testing other events to see if the problem isn't specific to the 1-2 events you have associated with your procedures?

5. Lastly, ensure you don't have code for the same events in an Add-In or Class Module that are unintentionally conflicting with the code you want to execute.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,387
Members
449,080
Latest member
Armadillos

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