Share via


Resources Property (Project, Selection, or Task objects)

Returns a Resources collection representing the resources in a Project, Selection, or Task. Read-only.

Example

The following example displays the name of each resource assigned to the selected task.

Sub ResourceNames()

    Dim R As Resource
    
    For Each R In ActiveCell.Task.Resources
        MsgBox R.Name
    Next R
    
End Sub

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

See Also | IgnoreResourceCalendar Property | Resource Object, Resources Collection Object | Resource Property (Cell object) | TimeScaleData Method | UniqueID Property