Application.GanttBarSize method (Project)
Sets the height, in points, of the Gantt bars in the active Gantt Chart.
expression A variable that represents an Application object.
|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.|
The following example set the bar size to pjBarSize24.
Sub GanttBar_Size() 'Activate Gantt Chart view ViewApply Name:="&Gantt Chart" GanttBarSize Size:= pjBarSize24
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.