Text Property

Microsoft Graph Visual Basic

expression.Text

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

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