Excel VBA error: Microsoft Excel Has Stopped Working
Posted on 2010-12-05
I am using Microsoft Excel 2010 and have a rather complex user form that has 6 rows of 30 controls each on one tab of a MultiPage control. There are several other Tabs/Pages in the form, but this particular Tab/Page oftentimes throws the error "Microsoft Excel has stopped working." This problem does not occur every time the Form is used, but it does occur frequently enough to be frustrating.
I have perused the Microsoft KB article 319832, "INFO: Error or Unexpected Behavior with Office Automation When You Use Early Binding in Visual Basic" but I still get the message even after ensuring that Option Explicit is in place. I have also set VBA to "Break on all errors" but this error does not cause any offending line to be highlighted.
Once the issue does occur, exporting then deleting then importing the user form seems to correct the problem -- for a while, but not permanently.
Any ideas on what might be causing it or what steps I can take to find the offending code?