Shapes.AddTextEffect method (Project)
The AddTextEffect method is not implemented in Project.
Syntax
expression. AddTextEffect
(PresetTextEffect, Text, FontName, FontSize, FontBold, FontItalic, Left, Top)
expression A variable that represents a Shapes object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
PresetTextEffect | Required | MsoPresetTextEffect | A preset text effect. The values of the MsoPresetTextEffect constants correspond to the formats listed in the WordArt Gallery dialog box (numbered from left to right and from top to bottom). |
Text | Required | String | The text in the WordArt. |
FontName | Required | String | The name of the font used in the WordArt. |
FontSize | Required | Single | The size (in points) of the font used in the WordArt. |
FontBold | Required | MsoTriState | Use the msoTrue constant to bold the font; otherwise, use msoFalse. |
FontItalic | Required | MsoTriState | Use the msoTrue constant to italicize the font; otherwise, use msoFalse. |
Left | Required | Single | The position, in points, of the left edge of the WordArt shape relative to the left edge of the report. |
Top | Required | Single | The position, in points, of the top edge of the WordArt shape relative to the top edge of the report. |
PresetTextEffect | Required | MSOPRESETTEXTEFFECT | |
Text | Required | String | |
FontName | Required | String | |
FontSize | Required | FLOAT | |
FontBold | Required | MSOTRISTATE | |
FontItalic | Required | MSOTRISTATE | |
Left | Required | FLOAT | |
Top | Required | FLOAT | |
Name | Required/Optional | Data type | Description |
Return value
Shape
Remarks
Note
The Shapes.AddTextEffect method in Excel and Word creates a WordArt item, and returns a Shape object that represents the new WordArt item. But, Project does not support directly creating a WordArt item.
Instead of using the AddTextEffect method to add WordArt, you can use AddTextbox, and then format the selected text box with WordArt styles.
See also
Shapes Object Shape Object MsoPresetTextEffect Enumeration
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.