Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
43 lines (26 loc) · 765 Bytes

task-flag12-property-project.md

File metadata and controls

43 lines (26 loc) · 765 Bytes
title ms.prod api_name ms.assetid ms.date
Task.Flag12 Property (Project)
project-server
Project.Task.Flag12
6a924ae6-6390-d17a-c533-df0a69164229
06/08/2017

Task.Flag12 Property (Project)

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

Syntax

expression. Flag12

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