OnAfterWebWindowViewChange Event

       

Occurs after the Web window view has changed.

Private Sub application__OnAfterWebWindowViewChange(ByVal pWebWindow As WebWindow)

application   An object of type Application declared with events in a class module.

pWebWindow   The WebWindowEx object in which the view has changed.

Example

The following example displays the name of the new view type to the user every time the view is changed.

Private Sub objApp_OnAfterWebWindowViewChange(ByVal pWebWindow As WebWindow)
'Occurs after the Web window view changes

    'Display message to user
    MsgBox "The view has changed to " & pWebWindow.ViewModeEx & " mode."

End Sub