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

Assignment.Flag15 Property (Project)

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

True if the flag associated with an Assignment is set. Read/write Variant.


expression. Flag15

expression A variable that represents an Assignment object.


The following example deletes all the tasks that have the Flag1 set to True.

Sub DeleteNonEssentialTasks() 

  Dim T As Task ' Task object used in For Each loop 

  ' Delete nonessential tasks in the active project. 
  For Each T In ActiveProject.Tasks 
    If Not (T Is Nothing) Then 
      If T.Flag1 = True Then T.Delete 
    End If 
  Next T
End Sub
© 2018 Microsoft