Shapes.AddWordArt method (Publisher)

Returns a Shape object that represents the WordArt to be added to the publication.

Syntax

expression.AddWordArt (PresetWordArt, Text, FontName, FontSize, FontBold, FontItalic, Left, Top)

expression A variable that represents a Shapes object.

Parameters

Name Required/Optional Data type Description
PresetWordArt Required PbPresetWordArt The type of preset WordArt to add.
Text Required String The text of the WordArt.
FontName Required String The name of the font to be used in the WordArt.
FontSize Required Variant The size of the font to be used in the WordArt.
FontBold Required MsoTriState Whether the WordArt text should be bold. See Remarks for possible values.
FontItalic Required MsoTriState Whether the WordArt text should be italic. See Remarks for possible values.
Left Required Variant The horizontal position of the WordArt.
Top Required Variant The vertical position of the WordArt.

Return value

Shape

Remarks

The FontBold parameter value can be one of the following MsoTriState constants declared in the Microsoft Office type library.

Constant Description
msoFalse None of the characters in the WordArt are formatted as bold.
msoTriStateMixed A return value indicating that the WordArt contains some text formatted as bold and some text not formatted as bold.
msoTriStateToggle A set value that switches between msoTrue and msoFalse.
msoTrue All the characters in the WordArt are formatted as bold.

The FontItalic parameter value can be one of the following MsoTriState constants.

Constant Description
msoFalse None of the characters in the WordArt are formatted as italic.
msoTriStateMixed A return value indicating that the WordArt contains some text formatted as italic and some text not formatted as italic.
msoTriStateToggle A set value that switches between msoTrue and msoFalse.
msoTrue All the characters in the WordArt are formatted as italic.

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.