we use a stage-gate framework and would like to color code each of the stages based on our colors. I've got the following code working, however, it continues to loop through about 30 times.
It doesn't need to keep looping though but not sure how to handle it. Any help to make this better would be appreciated.
Each Stage is at the first Summary level
Sub FindFieldByPriority2()
Dim ProjTasks As Tasks
Dim ProjTask As Task
Set ProjTasks = ActiveProject.Tasks
If ProjTask.Summary = True Then
Find Field:="Name", Test:="contains", Value:="STAGE 1 -"
SelectRow
Font32Ex Color:=16777215, CellColor:=50417
Find Field:="Name", Test:="contains", Value:="STAGE 2 -"
SelectRow
Font32Ex Color:=16777215, CellColor:=1597656
Find Field:="Name", Test:="contains", Value:="STAGE 3 -"
SelectRow
Font32Ex Color:=16777215, CellColor:=4925715
Find Field:="Name", Test:="contains", Value:="STAGE 4 -"
SelectRow
Font32Ex Color:=16777215, CellColor:=4898666
End If
Next ProjTask
End Sub