Table of contents
TOC
Collapse the table of content
Expand the table of content

Assignment.Delete Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Deletes the Assignment object from an Assignments collection.

Syntax

expression. Delete

expression A variable that represents an Assignment object.

Example

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
© 2018 Microsoft