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

TextEffectFormat.PresetTextEffect Property (Publisher)

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

Returns or sets an MsoPresetTextEffect constant that represents the style of the specified WordArt. The values for this property correspond to the formats in the WordArt Gallery dialog box, numbered from left to right, top to bottom. Read/write.

Syntax

expression. PresetTextEffect

_expression_A variable that represents a TextEffectFormat object.

Return Value

MsoPresetTextEffect

Remarks

The PresetTextEffect property value can be one of the ** MsoPresetTextEffect** constants declared in the Microsoft Office type library.

Example

This example sets the text effect style for the first shape on the first page of the active publication. This example assumes that there is at least one shape on the first page of the active publication.

Sub ChangeTextEffect() 
 With ActiveDocument.Pages(1).Shapes(1) 
 If .Type = msoTextEffect Then 
 .TextEffect.PresetTextEffect = msoTextEffect1 
 End If 
 End With 
End Sub
© 2018 Microsoft