WindowActivate Event

WindowActivate Event

See Also         Example         Applies To

Occurs when the application window or any document window is activated.

Syntax

Private Sub application_WindowActivate(ByVal Pres As Presentation, ByVal Wn As DocumentWindow)

application   An object of type Application declared with events in a class module. For information about using events with the Application object, see Using Events with the Application Object.

Pres   The presentation displayed in the activated window.

Wn   The activated document window.