Assignment.Flag5 Property

Project Developer Reference

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

Syntax

expression.Flag5

expression   A variable that represents an Assignment object.

Return Value
Variant

Example

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

Visual Basic for Applications
  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.<strong class="bterm">Flag1</strong> = True Then T.Delete
    End If
Next T

End Sub

See Also