Share via


Application.GanttBarSize Method

Project Developer Reference

Sets the height, in points, of the Gantt bars in the active Gantt Chart.

Syntax

expression.GanttBarSize(Size)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Size Required Long A constant specifying the height, in points, of the Gantt bars in the active Gantt Chart. Can be one of the following PjBarSize constants.

Return Value
Boolean

Example
The following example set the bar size to pjBarSize24.

Visual Basic for Applications
  Sub GanttBar_Size()
'Activate Gantt Chart view
ViewApply Name:="&Gantt Chart"
<strong class="bterm">GanttBarSize</strong> Size:=

pjBarSize24

Visual Basic for Applications
  End Sub

See Also