TextEffectFormat.Text Property (Publisher)

Returns or sets a String that represents the text in a text range or WordArt shape. Read/write.


expression. Text

expression A variable that represents a TextEffectFormat object.


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