WindowViewChange Event
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
Private Sub object_WindowViewChange(ByVal Window As MSProject.Window, ByVal prevView As MSProject.View, ByVal newView As MSProject.View, ByVal success As Boolean)
object An object of type Application declared with events in a class module. For more information, see Using events with the Application object.
Window The window where the view change occurs.
prevView 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 The new top pane view the user has now applied.
success True if the view change action succeeded.
Remarks
Project events do not occur when the project is embedded in another document or application.
Applies to | Application Object
See Also | WindowBeforeViewChange Event