Shapes.AddTextEffect (Excel)

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 that 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 = ActiveChart.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) - The font used in the WordArt to bold.

FontItalic (Office.MsoTriState) - The font used in the WordArt to italic.

Left (Single) - The position (in points) of the upper-left corner of the WordArt's bounding box relative to the upper-left corner of the document.

Top (Single) - The position (in points) of the upper-left corner of the WordArt's bounding box relative to the top of the document.