What I was trying to do was to put names of the rollup
Milestone on the row up gantbar. I was able to do this
after 4 days of playing around. This is the short code to
do the task. Thanks for the insite.
Public Sub testRowup()
Dim tasknumber As Long
tasknumber = ActiveCell.task.ID
GanttBarSub tasknumber
End Sub
Public Sub GanttBarSub(task As Long)
'Setup the GanttBar
GanttBarFormat TaskID:=task, GanttStyle:=5,
StartShape:=2, StartType:=0, StartColor:=0,
MiddleShape:=2, MiddlePattern:=1, MiddleColor:=0,
EndShape:=2, EndType:=0, EndColor:=0, RightText:="Resource
Names", ProjectName:="C:\Documents and Settings\Michael
McVeigh\My Documents\Work\TSD\tsd reports\TSD SAP 2.mpp"
GanttBarFormat TaskID:=task + 1, GanttStyle:=6,
StartShape:=0, StartType:=0, StartColor:=0,
MiddleShape:=1, MiddlePattern:=3, MiddleColor:=5,
EndShape:=0, EndType:=0, EndColor:=0,
ProjectName:="C:\Documents and Settings\Michael McVeigh\My
Documents\Work\TSD\tsd reports\TSD SAP 2.mpp"
GanttBarFormat TaskID:=task + 2, GanttStyle:=8,
StartShape:=3, StartType:=1, StartColor:=0,
MiddleShape:=0, MiddlePattern:=1, MiddleColor:=0,
EndShape:=0, EndType:=0, EndColor:=0, TopText:="Name",
ProjectName:="C:\Documents and Settings\Michael McVeigh\My
Documents\Work\TSD\tsd reports\TSD SAP 2.mpp"
GanttBarFormat TaskID:=task + 3, GanttStyle:=8,
StartShape:=3, StartType:=1, StartColor:=0,
MiddleShape:=0, MiddlePattern:=1, MiddleColor:=0,
EndShape:=0, EndType:=0, EndColor:=0, BottomText:="Name",
ProjectName:="C:\Documents and Settings\Michael McVeigh\My
Documents\Work\TSD\tsd reports\TSD SAP 2.mpp"
GanttBarFormat TaskID:=task + 4, GanttStyle:=8,
StartShape:=3, StartType:=1, StartColor:=0,
MiddleShape:=0, MiddlePattern:=1, MiddleColor:=0,
EndShape:=0, EndType:=0, EndColor:=0, TopText:="Name",
ProjectName:="C:\Documents and Settings\Michael McVeigh\My
Documents\Work\TSD\tsd reports\TSD SAP 2.mpp"
GanttBarFormat TaskID:=task + 5, GanttStyle:=8,
StartShape:=3, StartType:=1, StartColor:=0,
MiddleShape:=0, MiddlePattern:=1, MiddleColor:=0,
EndShape:=0, EndType:=0, EndColor:=0, BottomText:="Name",
ProjectName:="C:\Documents and Settings\Michael McVeigh\My
Documents\Work\TSD\tsd reports\TSD SAP 2.mpp"
End Sub