Shapes.AddTextEffect (PowerPoint)

Creates a WordArt object. Returns a Shape object that represents the new WordArt object.

When you add WordArt to a document, the height and width of the WordArt are automatically set based on the size and amount of text you specify.

AddTextEffect (PresetTextEffect, Text, FontName, FontSize, FontBold, FontItalic, Left, Top)


Dim strText As String: strText = 
Dim strFontName As String: strFontName = 
Dim shpAddTextEffect As Shape
Set shpAddTextEffect = ActiveWindow.Selection.SlideRange(1).Shapes.AddTextEffect(PresetTextEffect:=msoTextEffectMixed, Text:=strText, FontName:=strFontName, FontSize:=, FontBold:=msoTrue, FontItalic:=msoTrue, Left:=, Top:=)

Arguments

The following arguments are required:

PresetTextEffect (Office.MsoPresetTextEffect) - The preset text effect.

Text (String) - The text in the WordArt.

FontName (String) - The name of the font used in the WordArt.

FontSize (Single) - The size (in points) of the font used in the WordArt.

FontBold (Office.MsoTriState) - Determines whether the font used in the WordArt is set to bold.

FontItalic (Office.MsoTriState) - Determines whether the font used in the WordArt is set to italic.

Left (Single) - The position, measured in points, of the left edge of the WordArt's bounding box relative to the left edge of the slide.

Top (Single) - The position, measured in points, of the top edge of the WordArt's bounding box relative to the top edge of the slide.