Edit

Share via


HasTitle property (Excel Graph)

True if the axis or chart has a visible title. Read/write Boolean.

Syntax

expression.HasTitle

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

An axis title is represented by an AxisTitle object.

A chart title is represented by a ChartTitle object.

Example

This example adds an axis label to the category axis.

With myChart.Axes(xlCategory) 
 .HasTitle = True 
 .AxisTitle.Text = "July Sales" 
End With

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.