I
iftamrak
I created an extract from excel in MSP2007, Professional. There are three
columns in the plan. The taskname, the baseline finish and flag2. The last
column has a Yes or No value.
I would like to have the fonts in the Task Name column bolded, when the
value of Flag2 is a Yes.
** I have already tried using the Format, Text Styles, and Item to Change.
There is no value that I can check in Flag2 here.
We wrote a VBA and we still could not get this to work. The codes are the
following:
Public Sub BoldFont()
Dim tsk As Task
For Each tsk In ActiveProject.Tasks
If Not tsk Is Nothing Then
SelectRow tsk.UniqueID, RowRelative:=False
SelectTaskField Row:=tsk.UniqueID, _
RowRelative:=False, Column:="Name"
Font Bold:=True
End If
Next
End Sub
Can anyone assist how can I make adjustments to the code? Thank you.
columns in the plan. The taskname, the baseline finish and flag2. The last
column has a Yes or No value.
I would like to have the fonts in the Task Name column bolded, when the
value of Flag2 is a Yes.
** I have already tried using the Format, Text Styles, and Item to Change.
There is no value that I can check in Flag2 here.
We wrote a VBA and we still could not get this to work. The codes are the
following:
Public Sub BoldFont()
Dim tsk As Task
For Each tsk In ActiveProject.Tasks
If Not tsk Is Nothing Then
SelectRow tsk.UniqueID, RowRelative:=False
SelectTaskField Row:=tsk.UniqueID, _
RowRelative:=False, Column:="Name"
Font Bold:=True
End If
Next
End Sub
Can anyone assist how can I make adjustments to the code? Thank you.