Application.OnBeforePageWindowViewChange Event

SharePoint Designer Developer Reference

Occurs before the current Page window view is changed.

Syntax

Private Sub expression_OnBeforePageWindowViewChange(ByVal pPage As PageWindow, ByVal TargetView As PageViewMode, Cancel As Boolean)

expression   A variable that represents an Application object that has been declared by using the WithEvents option in a class module.

Parameters

Name Required/Optional Data Type Description
pPage Required PageWindow The window for which the view is changing.
TargetView Required PageViewMode The target window type.
Cancel Required Boolean Cancels the event. If False, the event is not canceled. If True, the event is canceled.

Remarks

This event can be canceled programmatically.

See Also