Application.GanttBarStyleDelete method (Project)

Deletes a Gantt bar style from the active Gantt Chart.

Syntax

expression. GanttBarStyleDelete( _Item_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Item Required String String. The name or row number of the Gantt bar to delete from the Bar Styles dialog box.

Return value

Boolean

Remarks

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.

Example

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

GanttBarStyleDelete Item:="41"

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.