Table of contents
Collapse the table of content
Expand the table of content

Application.WindowActivate Event (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Occurs when the application window is activated.


expression. WindowActivate( Wn, )

_expression_A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
WnRequiredWindowThe window that is being activated.


For information about using events with the Application object, see Using Events with the Application Object.


This example maximizes the Microsoft Publisher window when it is activated. This code must be placed in a class module, and an instance of the class must be correctly initialized to see this example work; see Using Events with the Application Objectfor directions on how to accomplish this.

Public WithEvents appPublisher as Publisher.Application 

Private Sub appPublisher_WindowActivate _ 
 (ByVal Wn As Window) 
 Wn.WindowState = pbWindowStateMaximize 
End Sub

See also


Application Object

© 2018 Microsoft