OFF98: Activate Event for UserForm May Not Be Triggered (182601)
The information in this article applies to:
- Microsoft Excel 98 Macintosh Edition
- Microsoft Word 98 Macintosh Edition
This article was previously published under Q182601 SYMPTOMS
If you assign a Microsoft Visual Basic for Applications macro to the
Activate event of a UserForm, the macro may not run when you activate the
UserForm.
CAUSE
The Activate event for a UserForm may not occur if all of the following
conditions are true:
- You create a macro and assign it to the Deactivate event for one
UserForm.
-and-
- You create a macro and assign it to the Activate event for another
UserForm.
-and-
- The UserForm with the Deactivate event macro is the active UserForm, and
you run a macro that activates the second UserForm with the Activate
event macro.
WORKAROUND
To work around this problem, add the Visual Basic for Applications macro
code for the Deactivate event for the first UserForm to the macro that
activates the second UserForm. When you do this, add the code for the
Deactivate event above the code that activates the second UserForm.
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 using the Activate and Deactivate events, click
the Office Assistant while in the Visual Basic Editor, type activate,
deactivate, click Search, and then click to
view "Activate, Deactivate Events."
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If the Assistant is not able to answer your query, 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/23/2005 |
---|
Keywords: | kbdtacode kbprb kbProgramming KB182601 |
---|
|