B
Bob Inwater
I maintain a 1000 plus line schedule for Fortune 500 Company that uses a
formatting macro to color code and underline tasks in the Gantt. The code is
pretty standard stuff line “ for each task in active project…..If behind
plan format Bold Red if 100% Bold Grey and suchâ€.
The problem is the macro now takes up to ten minutes to cycle though. Any
ideas on speeding this up?
Code Snip below : (Text29 holds a If then statment for a number of conditions)
If t.Number1 = 100 Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjGray
ElseIf t.Text29 = " Condition 1" Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjRed
ElseIf t.Text29 = "Condition 2" Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjRed
ElseIf t.Text29 = " Condition 3" Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjGreen
ElseIf t.Text29 = " Condition 4" Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjNavy
ElseIf t.Text29 = "Condition 5" Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjPurple
End If
formatting macro to color code and underline tasks in the Gantt. The code is
pretty standard stuff line “ for each task in active project…..If behind
plan format Bold Red if 100% Bold Grey and suchâ€.
The problem is the macro now takes up to ten minutes to cycle though. Any
ideas on speeding this up?
Code Snip below : (Text29 holds a If then statment for a number of conditions)
If t.Number1 = 100 Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjGray
ElseIf t.Text29 = " Condition 1" Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjRed
ElseIf t.Text29 = "Condition 2" Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjRed
ElseIf t.Text29 = " Condition 3" Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjGreen
ElseIf t.Text29 = " Condition 4" Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjNavy
ElseIf t.Text29 = "Condition 5" Then
SelectRow Row:=r, rowrelative:=False
Font Color:=pjPurple
End If