P
Pete
I've been assigned to write a piece of code that will format outline level 2
summary tasks in different colors and patterns based on some key criteria in
the task name.
I'm using the GanttBarFormat method, and it works great. The problem I'm
having is dynamically figuring out what the GanttStyle parameter should be.
For example, if I create a new, blank Project and select "Bar Styles..."
from the "Format" menu I find that "Summary" is the 5th item in the list of
styles. I run the GanttBarFormat method with GanttStyle:= 5 and it works
wonderfully. However, if I then delete a style, or if I run the Gantt Chart
Wizard which deletes and rearranges all of the styles, "Summary" is no longer
the 5th entry in the list and my code breaks (for instance, the Gantt Chart
Wizard with all the default selections moves "Summary" to the 4th spot in the
list).
Does anyone know if there is a way to dynamically figure out where each
GanttStyle appears in the list?
Thanks for taking the time to think this through with me!
-Pete
summary tasks in different colors and patterns based on some key criteria in
the task name.
I'm using the GanttBarFormat method, and it works great. The problem I'm
having is dynamically figuring out what the GanttStyle parameter should be.
For example, if I create a new, blank Project and select "Bar Styles..."
from the "Format" menu I find that "Summary" is the 5th item in the list of
styles. I run the GanttBarFormat method with GanttStyle:= 5 and it works
wonderfully. However, if I then delete a style, or if I run the Gantt Chart
Wizard which deletes and rearranges all of the styles, "Summary" is no longer
the 5th entry in the list and my code breaks (for instance, the Gantt Chart
Wizard with all the default selections moves "Summary" to the 4th spot in the
list).
Does anyone know if there is a way to dynamically figure out where each
GanttStyle appears in the list?
Thanks for taking the time to think this through with me!
-Pete