E
Earl Lewis
Anyone have any idea why this code causes the "Format Bar" window to open for each task? According to the help the window should only open if GanttBarFormat is called with no arguments.
Just to be clear - I do NOT want the format window to open for each iteration - it needs to happen 'under the covers'.
Sub AddCostToGantt()
Dim myTask As Task
For Each myTask In ActiveProject.Tasks
If myTask.Summary Then
GanttBarFormat TaskID:=myTask.ID, LeftText:="Cost1"
Else
GanttBarFormat TaskID:=myTask.ID, LeftText:=Null
End If
Next
End Sub
Thanks for any ideas you might have. Also, sorry if this is a double-post. My newsreader seems to be misbehaving today - or is it just me?
Earl
Just to be clear - I do NOT want the format window to open for each iteration - it needs to happen 'under the covers'.
Sub AddCostToGantt()
Dim myTask As Task
For Each myTask In ActiveProject.Tasks
If myTask.Summary Then
GanttBarFormat TaskID:=myTask.ID, LeftText:="Cost1"
Else
GanttBarFormat TaskID:=myTask.ID, LeftText:=Null
End If
Next
End Sub
Thanks for any ideas you might have. Also, sorry if this is a double-post. My newsreader seems to be misbehaving today - or is it just me?
Earl