Application.WindowViewChange event (Project)

Occurs after the top pane view is changed within a project window. The WindowViewChange event returns a success argument that tells whether the view change action was successful.

Syntax

expression. WindowViewChange( _Window_, _prevView_, _newView_, _success_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Window Required Window The window where the view change occurs.
prevView Required View The previous topic pane view the user was in before the view change occurred. If the user was not in a project view before applying the current view, the prevView argument returns null.
newView Required View The new top pane view the user has now applied.
success Required Boolean True if the view change action succeeded.

Return value

Nothing

Remarks

Project events don't occur when the project is embedded in another document or application.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.