OnAfterViewChange Event

       

Occurs after the view has changed in the active page window or web window.

Private Sub expression_OnAfterViewChange( )

expression   A variable name which references an object in the Applies To list declared with events in a class module.

Example

The following example displays the name of the new page window view mode.

Private Sub PgeWindowEx_OnAfterViewChange()
'Occurs when the view changes in the active window

    MsgBox "The page has changed to " & PgeWindowEx.ViewMode & "."

End Sub