TextEffectFormat.Text property (Publisher)
Returns or sets a String that represents the text in a text range or WordArt shape. Read/write.
Syntax
expression.Text
expression A variable that represents a TextEffectFormat object.
Example
The following example changes the text and sets the font name and formatting properties for shape one on the first page of the active publication. For this example to work, shape one must be a WordArt object.
Sub FormatWordArt()
With ActiveDocument.Pages(1).Shapes(1).TextEffect
.Text = "This is a test."
.FontName = "Courier New"
.FontBold = True
.FontItalic = True
End With
End Sub
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.