Forum Discussion
Color of tasks in Timeline based on color of task in Gantt Chart?
Hi all,
I am new here and I hope you can help me!
I want to know if it is possible that if a task is shown in the timeline view, the color of this task has automatically the same color like it has in the Gantt Chart.
If it does not work automatically, can it be done using a macro and can someone help me with the code?
Kind regards
Thomas
1 Reply
- John-projectSilver Contributor
Thomas,
Is it possible? Probably, but it would take a macro to do so. And no, I don't have an existing code that would do it. One of the problematic issues is that it is not possible to directly "read" the bar color of a Gantt bar so detecting the color of a Gantt bar to then replicate using the "fill" color for the "bar" in the timeline, must be done indirectly. I'd identify the Gantt bar color using a Flag field (e.g. Flag1, Flag2, etc.). There are 20 of those available and I doubt you would need more colors than that for the Timeline display, unless you have a really busy and complex Timeline display.
John