XL97: UserForm May Not Be Closed Using QueryClose Event (183520)
The information in this article applies to:
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q183520 SYMPTOMS
If you use the QueryClose event in a Microsoft 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:
176476
OFF: Office Assistant Not Answering Visual Basic Questions
Modification Type: | Major | Last Reviewed: | 6/17/2005 |
---|
Keywords: | kbbug kbnofix kbProgramming KB183520 |
---|
|