XL97: UserForm May Not Be Closed Using QueryClose Event (167611)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q167611 SYMPTOMS
If you use the QueryClose event in a Visual Basic for Applications macro to
control a UserForm, the UserForm may still be visible after you close it.
CAUSE
The UserForm may still be visible after you close it if the macro for the
QueryClose event uses the Show method to display another UserForm.
RESOLUTION
To resolve this problem, unload the UserForm in the QueryClose event macro
before you display another UserForm. The "More Information" section in this
article contains information about implementing this solution.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
REFERENCES
For more information about UserForms, click the Office Assistant in the
Visual Basic Editor, type UserForm, click
Search, and then click to view the "Creating a UserForm" topic.
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If Microsoft Excel Help is not installed on your
computer, please see the following article in the Microsoft Knowledge Base:
120802 Office: How to Add/Remove a Single Office Program or Component
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbhowto kbprb kbProgramming KB167611 |
---|
|