title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Task.ConstraintDate property (Project) |
vbapj.chm131666 |
|
project-server |
|
6985581b-82a1-6ab2-02ce-94d33e6d0336 |
06/08/2017 |
medium |
Gets or sets a constraint date for a task. Read/write Variant.
expression. ConstraintDate
expression A variable that represents a Task object.
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]