ConstraintDate Property
Returns or sets a constraint date for a task. Read/write Variant.
Remarks
Microsoft Office Project 2003 uses the constraint date only when you set a constraint on a task. To set a constraint on a task, use the ConstraintType property.
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
Applies to | Task Object, Tasks Collection Object
See Also | ConstraintType Property | Priority Property | WBS Property