Table of contents
TOC
Collapse the table of content
Expand the table of content

TextEffectFormat.Text Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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
© 2018 Microsoft