XL2002: Error Message: Excel Was Previously Unable to Load Your Toolbar Customizations Starting Excel (288614)



The information in this article applies to:

  • Microsoft Excel 2002

This article was previously published under Q288614

SYMPTOMS

When you run Microsoft Excel 2002, the following error message appears:
Microsoft Excel has encountered a problem and needs to close.
followed by
Excel was previously unable to load your toolbar customizations. Would you like to reset your toolbars to their default state?
If you click Yes, Excel opens. However, if you click No, the first error message reappears.

CAUSE

This problem can occur when you do the following in Excel:

  • You run a Microsoft Visual Basic for Applications macro, similar to the following
    CommandBars("Watch Window").Controls(1).Reset
    						
    that resets a control on the Watch Window toolbar using the Reset method.
  • You quit and then start Excel.

WORKAROUND

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site: For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site: To work around this problem, do not use the Reset method on the Watch Windows CommandBar object. If you are using a looping structure on the CommandBars collection, exclude the Watch Window toolbar. The following sample code demonstrates this:
For Each cmdBar in Application.CommandBars
   If cmdBar.Visible Then
      If cmdBar.Name <> "Watch Window" Then
         cmdBar.Controls(1).Reset
      End If
   End If
Next
				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

In Microsoft Excel 2002, the Watch Window toolbar is a pane style control that does not allow for customization. However, because the Watch Window is considered a toolbar (a CommandBar object in Visual Basic for Applications) and toolbars can be customized, it accepts the Visual Basic for Applications Reset method. If it is reset, Excel is unable to reload the toolbar.

NOTE: This problem does not occur with the Task Pane toolbar. If you try to reset one of its controls, it will return a run-time error.

REFERENCES

For more information about the Watch Window, click Microsoft Excel Help on the Help menu, type Watch Window in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Modification Type:MajorLast Reviewed:6/23/2005
Keywords:kbbug kberrmsg kbpending KB288614