MSProject - Modify a constraint on a taks

By screams_3 ·
I want to change a constraint on a task from "Finish Earlier than" to "Start No Earlier Than".

I have the code, it's executed without error, but it doesnt change anything.

Is it a bug, possible, or my code is just wrong?

Thank you for answering,

I tried to do it of two different way:

Dim oTask As Task
For Each oTask In ActiveProject.Tasks
SetTaskField Field:="ConstraintType",Value:="Start No Earlier Than",allSelectedTasks:=False

SetTaskField Field:="Constraint Date", Value:=oTask.Start, AllSelectedTasks:=False


Dim iRow As Integer
For iRow = 1 To ActiveProject.Tasks.Count
SelectRow Row:=iRow
SetTaskField Field:="Constraint Type", value:="Start No Earlier Than", AllSelectedTasks:=False

SetTaskField Field:="Constraint Date", Value:=ActiveProject.Tasks.Item(iRow).Start, AllSelectedTasks:=False

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Share your knowledge

Related Discussions

Related Forums