Text Property

The Text property returns or sets a text string. Returns a String.

Syntax

object.Text

object.Text = Text

 

Parameter Type Description
Text String required, text string

 

Example 1

The following example shows how to change existing text where the object ID is "text."

Text1.text = "More text"

Example 2

The following example shows how to return existing text where the object ID is "text."

Debug.Print Text1.text

 

Used by: AutoAxisTitle object, AutoGraphTitle object, AutoPieChartTitle object, AutoLegendTitle object, AutoMText object, AutoScaleTitle object