Excel VBA error:  Microsoft Excel Has Stopped Working

    Question by:
    On

    Topics:

    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?  
     

    Verified Answer?

    The member who asked this question verified this comment provided the solution that solved their problem.

    by:Posted on 2010-12-06 at 05:40:27ID: 34282589

    malcolm29,

    Are you sure that you are referencing the correct Multipage and their subpages? The subpages are not in order and personally I find it pretty confusing.

    I believe that much tighter referencing of the Multipage and its subpages may well overcome the problems you are encountering.

    Patrick
    This content is available to Experts Exchange members

    See the answer now
    with your Free 30 Day Trial

    Get unlimited access to solutions & experts

    • 4,169,477 solved questions
    • 3,805 articles & videos
    • 15,413 tech experts

    Get Access Now

    Ask Your Tech Question. Get Expert Solutions.We will email you when an expert has commented on your question.

    We will never share this with anyone. Privacy Policy Terms of Use

    Select topics

    You may select up to five topics.

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201507-LO-Qu-065

    RELATED TOPICS view all topics

    1. MS Office
      (55,131)
    2. Visual Basic Classic
      (162,175)
    3. VB Script
      (34,898)
    4. MS Applications
      (43,697)
    5. Spreadsheets
      (5,584)
    6. MS Access
      (212,607)
    7. MS Word
      (26,310)
    8. Visual Basic.NET
      (90,516)
    9. Programming
      (50,780)
    10. MS Development
      (48,487)