title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Task.Flag19 property (Project) |
project-server |
|
3a07ae3b-d02e-97aa-2b85-ebf940a776b8 |
06/08/2017 |
medium |
Gets or sets the value of a task flag custom field. Read/write Variant.
expression. Flag19
expression A variable that represents a Task 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
[!includeSupport and feedback]