Assignment Object, Assignments Collection Object
Multiple objects Assignments Assignment TimeScaleValues |
Represents an assignment for a task or resource. The Assignment object is a member of the Assignments collection.
Using the Assignment Object
Use Assignments(Index), where Index is the assignment index number, to return a single Assignment object. The following example displays the name of the first resource assigned to the specified task.
MsgBox ActiveProject.Tasks(1).Assignments(1).ResourceName
Using the Assignments Collection
Use the Assignments property to return an Assignments collection. The following example displays all the resources assigned to the specified task.
Dim A As Assignment
For Each A In ActiveProject.Tasks(1).Assignments
MsgBox A.ResourceName
Next A
Use the Add method to add an Assignment object to the Assignments collection. The following example adds a resource identified by the number of 212 as a new assignment for the specified task.
ActiveProject.Tasks(1).Assignments.Add ResourceID:=212
Properties | ActualCost Property | ActualFinish Property | ActualOvertimeCost Property | ActualOvertimeWork Property | ActualOvtWorkProtected Property | ActualStart Property | ActualWork Property | ActualWorkProtected Property | ACWP Property | Application Property | Assignments Property | BaselinenCost Property | BaselinenFinish Property | BaselinenStart Property | BaselinenWork Property | BCWP Property | BCWS Property | Confirmed Property | Costn Property | CostRateTable Property | CostVariance Property | Created Property | CV Property | Daten Property | Delay Property | Durationn Property | EnterpriseCostn Property | EnterpriseDaten Property | EnterpriseDurationn Property | EnterpriseFlagn Property | EnterpriseNumbern Property | EnterpriseResourceMultiValuen Property | EnterpriseResourceOutlineCoden Property | EnterpriseResourceRBS Property | EnterpriseTextn Property | Finish Property | Finishn Property | FinishVariance Property | FixedMaterialAssignment Property | Flagn Property | Hyperlink Property | HyperlinkAddress Property | HyperlinkHREF Property | HyperlinkScreenTip Property | HyperlinkSubAddress Property | Index Property | LevelingDelay Property | LinkedFields Property | Notes Property | Numbern Property | Overallocated Property | OvertimeCost Property | OvertimeWork Property | Parent Property | Peak Property | PercentWorkComplete Property | Project Property | RegularWork Property | RemainingCost Property | RemainingOvertimeCost Property | RemainingOvertimeWork Property | RemainingWork Property | ResourceID Property | ResourceName Property | ResourceRequestType Property | ResourceType Property | ResourceUniqueID Property | ResponsePending Property | Start Property | Startn Property | StartVariance Property | SV Property | TaskID Property | TaskName Property | TaskOutlineNumber Property | TaskSummaryName Property | TaskUniqueID Property | TeamStatusPending Property | Textn Property | UniqueID Property | Units Property | UpdateNeeded Property | VAC Property | Work Property | WorkContour Property | WorkVariance Property
Methods | Add Method | AppendNotes Method | Delete Method | EnterpriseTeamMember Method | TimeScaleData Method
Parent Objects | Resource Object, Resources Collection Object | Task Object, Tasks Collection Object
Child Objects | TimeScaleValue Object, TimeScaleValues Collection Object
See Also | Assignments Property