Article ID: 160489
Article Last Modified on 6/18/2005
APPLIES TO
- Microsoft Excel 97 Standard Edition
This article was previously published under Q160489
SYMPTOMS
When you run a Microsoft Visual Basic for Applications macro in Microsoft
Excel, you receive the following error message
Run-time error '1004':
Show method of Dialog class failed
and the macro halts.
CAUSE
This error message occurs when the Visual Basic macro uses
Application.Dialogs to display either of the following dialog boxes:
For example, the problem occurs when the macro contains either of the
following commands:
Application.Dialogs(xlDialogMenuEditor).Show
Application.Dialogs(xlDialogVbaMakeAddin).Show
These dialog boxes are not available in Microsoft Excel 97 or later.
Additional query words: XL97
Keywords: kbprb kbdtacode KB160489