Collapse the table of content
Expand the table of content
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Text Property

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

expression.Text

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

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
Show:
© 2016 Microsoft