Application.WindowPageChange Event (Publisher)
Occurs when switching the view from one page to another page in a publication.
Syntax
expression .WindowPageChange(Vw, )
expression A variable that represents an Application object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Vw |
Required |
View |
The new view that includes the page to which the view has been switched. |
Example
This example changes the view to display the whole page when switching to a new page in a publication. For this example to work, you must place the WithEvents declaration in the General Declarations section of a class module and run the InitializeEvents routine.
Private WithEvents PubApp As Publisher.Application
Sub InitializeEvents()
Set PubApp = Publisher.Application
End Sub
Private Sub PubApp_WindowPageChange(ByVal Vw As View)
Vw.Zoom = pbZoomWholePage
End Sub