TextEffectFormat.PresetTextEffect property (Publisher)
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
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.