D
dbonline
I would like to update the font color of a selected group of tasks in my
project. The problem I have is that if any rows in or before this selected
group are colapsed, the wrong rows are updated.
Below is the code I wrote. It works fine if all tasks are expanded.
Sub Change_Font_to_Red()
Dim SelTask As Task
For Each SelTask In ActiveSelection.Tasks
SelectRow Row:=SelTask.ID, RowRelative:=False
Font Color:=1
SelectTaskField Row:=0, Column:="Text3"
SetTaskField Field:="Text3", Value:="U"
Next SelTask
End Sub
project. The problem I have is that if any rows in or before this selected
group are colapsed, the wrong rows are updated.
Below is the code I wrote. It works fine if all tasks are expanded.
Sub Change_Font_to_Red()
Dim SelTask As Task
For Each SelTask In ActiveSelection.Tasks
SelectRow Row:=SelTask.ID, RowRelative:=False
Font Color:=1
SelectTaskField Row:=0, Column:="Text3"
SetTaskField Field:="Text3", Value:="U"
Next SelTask
End Sub