Share via


Application.WindowPageChange Event

Publisher Developer Reference

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.

Visual Basic for Applications
  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

See Also