Share via


Tasks Property

Returns a Tasks collection representing the tasks in the active project or selection. Read-only.

Example

The following example displays the name of every task in the selection.

Sub TaskNames()

    Dim T As Task, Names As String

    For Each T In ActiveSelection.Tasks
        Names = Names & T.Name & vbCrLf
    Next T

    MsgBox Names
        
End Sub

Applies to | Project Object, Projects Collection Object | Selection Object

See Also | PredecessorTasks Property | SuccessorTasks Property | Task Object, Tasks Collection Object | TimeScaleData Method | UniqueID Property