Application.GanttBarStyleBaseline Method (Project)

Shows or hides the specified baseline on Gantt bars of the active view.


expression. GanttBarStyleBaseline( _Baseline_, _Show_ )

expression An expression that returns an Application object.


Name Required/Optional Data Type Description
Baseline Required Integer Specifies the baseline number. Valid values are 0 through 10.
Show Required Boolean If True, show the baseline. If False, hide the baseline.

Return Value



On the Ribbon, the GanttBarStyleBaseline method corresponds to the Baseline drop-down list in the Bar Styles group on the Format tab for Gantt Chart Tools.


The following command shows the baseline 1 data for tasks on the active Gantt chart view.

GanttBarStyleBaseline(1, True)