Table of contents
Collapse the table of content
Expand the table of content

Application.GanttBarStyleDelete Method (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Deletes a Gantt bar style from the active Gantt Chart.


expression. GanttBarStyleDelete( ** Item** )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
ItemRequiredStringString. The name or row number of the Gantt bar to delete from the Bar Styles dialog box.

Return Value



To manually show the Bar Styles dialog box, click the Format tab under the Gantt Chart Tools tab. In the Bar Styles group, click Bar Styles in the Format drop-down list. The Bar Styles dialog box can contain up to 200 style entries.


The following command deletes style number 41 in the Bar Styles dialog box.

GanttBarStyleDelete Item:="41"
© 2018 Microsoft