Pane.View method (Project)

Returns the active View object.

Syntax

expression.View

expression A variable that represents a Pane object.

Return value

View

Example

The following statement prints the name of the view in the Immediate window in the VBE. For example, if the Team Planner view is active, the statement prints "Team Planner".

Debug.Print ActiveWindow.ActivePane.View.Name

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.