Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 878 Bytes

Project.Task.Flag20.md

File metadata and controls

44 lines (28 loc) · 878 Bytes
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Task.Flag20 property (Project)
project-server
Project.Task.Flag20
2bb001c0-1a59-5250-0e63-1a2ebe9a3cab
06/08/2017
medium

Task.Flag20 property (Project)

Gets or sets the value of a task flag custom field. Read/write Variant.

Syntax

expression. Flag20

expression A variable that represents a Task object.

Example

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]