InlineShapes.AddSmartArt method (Word)
Inserts a SmartArt graphic as an inline shape into the active document.
Syntax
expression. AddSmartArt
( _Layout_
, _Range_
)
expression An expression that returns a 'InlineShapes' object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Layout | Required | [SMARTARTLAYOUT] | A SmartArtLayoutobject that specifies the layout for the SmartArt graphic. |
Range | Optional | Variant | Specifies the text to which the SmartArt graphic is bound. If Range is specified, the SmartArt graphic is positioned at the beginning of the first paragraph in the range. If this argument is omitted, the range is selected automatically, and the SmartArt graphic is positioned relative to the top and left edges of the page. |
Return value
InlineShape
See also
InlineShapes Collection Object
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for