TextFrame2.TextRange property (Office)

Sets the text for a range of nodes in a SmartArt object. Read-only.

Syntax

expression.TextRange

expression An expression that returns a TextFrame2 object.

Example

The following example sets the text inside the first node.

smartart.AllNodes(1).TextFrame2.TextRange.Text="Node 1"

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.