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?  
    Good Question?
    0
     

    ?

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

    Accepted Solution 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

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201511-LO-Qu-074

    Extend your technology team with the Experts Exchange community.

    — trusted by —

    Who answers my questions?Our community has technology experts around the world.

    Excel amusant

    Expert in:

    • MS Excel
    • VB Script

    Rgonzo1971

    1

    Articles

    Expert in:

    • MS Excel
    • MS Office
    • MS Word
    • VB Script
    • Visual Basic Classic

    ProfessorJimJam

    Expert in:

    • MS Excel
    • MS Office
    • Spreadsheets
    • VB Script
    • Visual Basic Classic

    sktneer

    Expert in:

    • MS Excel
    • MS Office
    • Visual Basic Classic

    byundt

    Expert in:

    • MS Excel
    • MS Office
    • MS Applications
    • Visual Basic Classic
    • MS Word

    regmigrant

    Expert in:

    • MS Excel
    • MS Office
    • MS Applications
    • MS Word

    teylyn

    6

    Articles

    Expert in:

    • MS Excel
    • MS Office
    • MS SharePoint
    • MS Word
    • MS Applications

    Rey Obrero

    Expert in:

    • MS Access
    • Query Syntax
    • Visual Basic Classic
    • Databases
    • MS Applications

    Wayne Taylor (webtubbs)

    3

    Articles

    Expert in:

    • MS Excel
    • Visual Basic.NET
    • .NET Programming
    • Visual Basic Classic
    • VB Script

    RELATED TOPICS view all topics

    1. MS Office
      (55,897)
    2. Visual Basic Classic
      (162,807)
    3. VB Script
      (35,474)
    4. MS Applications
      (44,141)
    5. Spreadsheets
      (5,722)
    6. MS Access
      (214,004)
    7. MS Word
      (26,628)
    8. Visual Basic.NET
      (91,420)
    9. Programming
      (51,613)
    10. MS Development
      (48,689)