Share via


Task.Resources Property

Project Developer Reference

Returns a Resources collection representing the resources in a Task. Read-only Object.

Syntax

expression.Resources

expression   A variable that represents a Task object.

Return Value
Resources

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

Visual Basic for Applications
  Sub ResourceNames()
Dim R As Resource

For Each R In ActiveCell.Task.<strong class="bterm">Resources</strong>
    MsgBox R.Name
Next R

End Sub

See Also