Project.CurrentView Property

Project Developer Reference

Returns the name of the active view for a project. Read-only String.

Syntax

expression.CurrentView

expression   A variable that represents a Project object.

Return Value
String

Example
The following example displays the names of the active view, table, and filter in a dialog box.

Visual Basic for Applications
  Sub ViewDetails()
Dim Temp As String

Temp = "View: " &amp; ActiveProject.<strong class="bterm">CurrentView</strong> &amp; vbCrLf
Temp = Temp &amp; "Table:" &amp; ActiveProject.CurrentTable &amp; vbCrLf
Temp = Temp &amp; "Filter: " &amp; ActiveProject.CurrentFilter
MsgBox Temp

End Sub

See Also