WindowActivate Event
Occurs when any window within Project is activated. The WindowActivate event does not occur when the application window is activated.
Syntax
Private Sub object_WindowActivate(ByVal activatedWindow As MSProject.Window)
object An object of type Application declared with events in a class module. For more information, see Using events with the Application object.
activatedWindow The activated window.
Remarks
Project events do not occur when the project is embedded in another document or application.
Applies to | Application Object