Caption Property

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

expression.Caption

*expression   * Required. An expression that returns one of the above objects.

Example

This example adds the title "Annual Salary Figures" to the chart.

myChart.HasTitle = True
myChart.ChartTitle.Caption = "Annual Salary Figures"

Applies to | AxisTitle Object | ChartTitle Object | DataLabel Object | DisplayUnitLabel Object

See Also | Text Property