Shapes.AddSmartArt method (Excel)
Creates a new SmartArt graphic with the specified layout.
Syntax
expression.AddSmartArt (Layout, Left, Top, Width, Height)
expression A variable that represents a Shapes object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Layout | Required | SmartArtLayout | An object that represents the layout to use. |
Left | Optional | Variant | The distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart). |
Top | Optional | Variant | The distance, in points, from the top edge of the object to the top edge of the worksheet. |
Width | Optional | Variant | The width, in points, of the object. |
Height | Optional | Variant | The height, in points, of the object. |
Return value
Shape
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.