HasTitle property (Excel Graph)
True if the axis or chart has a visible title. Read/write Boolean.
expression.HasTitle
expression Required. An expression that returns one of the objects in the Applies To list.
An axis title is represented by an AxisTitle object.
A chart title is represented by a ChartTitle object.
This example adds an axis label to the category axis.
With myChart.Axes(xlCategory)
.HasTitle = True
.AxisTitle.Text = "July Sales"
End With
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.