title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Assignment.Delete method (Project) |
project-server |
|
3147c0e0-239c-75d2-cae9-c299412190e2 |
06/08/2017 |
medium |
Deletes the Assignment object from an Assignments collection.
expression.Delete
expression A variable that represents an Assignment object.
The following example deletes every resource assignment in the active project.
Sub DeleteAssignments()
Dim RA As Assignment ' Assignment object for resources
Dim T As Task ' Task object
' Delete resource assignments.
For Each T in ActiveProject.Tasks
For Each RA in T.Assignments
RA.Delete
Next RA
Next T
End Sub
[!includeSupport and feedback]