Text Property

Applies To

AxisTitle object, ChartTitle object, DataLabel object.

Description

Returns or sets the text for the specified object. Read/write String.

Example

This example sets the text for the title of the chart.

With myChart
    .HasTitle = True
    .ChartTitle.Text = "First Quarter Sales"
End With
This example sets the axis title text for the category axis.

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