Task.Resources property (Project)

Gets a Resources collection that contains the resources assigned to the task. Read-only Resources.

Syntax

expression. Resources

expression A variable that represents a Task object.

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

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.