P
Peter Rooney
I'm trying to mark off all the tasks with subtasks on my plan as italic, so
when I print out sections of the plan to give to people to update, they won't
provide updates for summary tasks. I noticed that all my summary tasks are
bold, so I was trying to detect the bold property for the task and use it to
change set the italic property, too, but I don't think I've quite got the
hand of the object/properties hierarchy yet. I don't doubt that there's a
smarter way to do this (some test for whether a task has subtasks), but if
someone could make my code work, I'd be very grateful!
Cheers
Pete
Sub AAFonts()
Dim LoopTask As Task
For Each LoopTask In ActiveProject.Tasks
If Not LoopTask Is Nothing Then
If LoopTask.Font.Bold = true Then
MsgBox (LoopTask.Name & " It's Bold!")
LoopTask.Font.Italic (True)
End If
End If
Next LoopTask
End Sub
when I print out sections of the plan to give to people to update, they won't
provide updates for summary tasks. I noticed that all my summary tasks are
bold, so I was trying to detect the bold property for the task and use it to
change set the italic property, too, but I don't think I've quite got the
hand of the object/properties hierarchy yet. I don't doubt that there's a
smarter way to do this (some test for whether a task has subtasks), but if
someone could make my code work, I'd be very grateful!
Cheers
Pete
Sub AAFonts()
Dim LoopTask As Task
For Each LoopTask In ActiveProject.Tasks
If Not LoopTask Is Nothing Then
If LoopTask.Font.Bold = true Then
MsgBox (LoopTask.Name & " It's Bold!")
LoopTask.Font.Italic (True)
End If
End If
Next LoopTask
End Sub