Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.05 KB

Project.Task.ConstraintDate.md

File metadata and controls

45 lines (31 loc) · 1.05 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Task.ConstraintDate property (Project)
vbapj.chm131666
vbapj.chm131666
project-server
Project.Task.ConstraintDate
6985581b-82a1-6ab2-02ce-94d33e6d0336
06/08/2017
medium

Task.ConstraintDate property (Project)

Gets or sets a constraint date for a task. Read/write Variant.

Syntax

expression. ConstraintDate

expression A variable that represents a Task object.

Example

The following example sets the constraint type to SNET and the constraint date to the current date for tasks in the active project with the default constraint of ASAP.

Sub SetConstraintDate() 
    Dim T As Task ' Task object used in For Each loop 
 
    For Each T In ActiveProject.Tasks 
        If T.ConstraintType = pjASAP Then 
            T.ConstraintType = pjSNET 
            T.ConstraintDate = ActiveProject.CurrentDate 
        End If 
    Next T 
End Sub

[!includeSupport and feedback]