Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns or sets the alignment for the specified WordArt. Read/write.
Syntax
expression.Alignment
expression A variable that represents a TextEffectFormat object.
Remarks
The value of the Alignment property can be one of these MsoTextEffectAlignment constants.
| msoTextEffectAlignmentCentered |
| msoTextEffectAlignmentLeft |
| msoTextEffectAlignmentMixed |
| msoTextEffectAlignmentRight |
| msoTextEffectAlignmentStretchJustify |
| msoTextEffectAlignmentWordJustify |
| msoTextEffectAlignmentLetterJustify |
Example
This example adds a WordArt object to the first slide in the active presentation and then right-aligns the WordArt.
Set mySh = Application.ActivePresentation.Slides(1).Shapes
Set myTE = mySh.AddTextEffect(PresetTextEffect:=msoTextEffect1, _
Text:="Test Text", FontName:="Palatino", FontSize:=54, _
FontBold:=True, FontItalic:=False, Left:=100, Top:=50)
myTE.TextEffect.Alignment = msoTextEffectAlignmentRight
See also
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.