Project.TaskViewList Property (Project)

Gets a List object representing all task views in the project. Read-only List.

Syntax

expression. TaskViewList

expression A variable that represents a Project object.

Example

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

Sub SeeAllViews() 
 
 Dim Temp As Variant 
 Dim TaskViewNames As String 
 
 For Each Temp In ActiveProject.TaskViewList 
 TaskViewNames = TaskViewNames &; vbCrLf &; Temp 
 Next Temp 
 
 MsgBox TaskViewNames 
 
End Sub