Application.GanttBarSize Method (Project)

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.

Sub GanttBar_Size() 
 
 'Activate Gantt Chart view 
 ViewApply Name:="&Gantt Chart" 
 GanttBarSize Size:= 
pjBarSize24

End Sub