Project.TaskViewList Property

Project Developer Reference

Returns a List object representing all task views in the active project. Read-only Object.



expression   A variable that represents a Project object.

The following example lists all the task views in the active project.

Visual Basic for Applications
  Sub SeeAllViews()
Dim Temp As Variant
Dim TaskViewNames As String

For Each Temp In ActiveProject.<strong class="bterm">TaskViewList</strong>
    TaskViewNames = TaskViewNames &amp; vbCrLf &amp; Temp
Next Temp

MsgBox TaskViewNames

End Sub

See Also