Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 917 Bytes

Project.Assignment.Flag1.md

File metadata and controls

44 lines (28 loc) · 917 Bytes
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Assignment.Flag1 property (Project)
project-server
Project.Assignment.Flag1
167a2a3b-7118-1f36-0fa8-9323f530c965
06/08/2017
medium

Assignment.Flag1 property (Project)

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

Syntax

expression. Flag1

expression A variable that represents an Assignment 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]