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

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.