SmartArtNode.AddNode method (Office)
Adds a new SmartArtNode object to the data model in the way specified by the SmartArtNodePosition value, and of type SmartArtNodeType.
Syntax
expression.AddNode (Position, Type)
expression An expression that returns a SmartArtNode object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Position | Optional | MsoSmartArtNodePosition | Specifies the location of the SmartArtNode in the data model; for example, msoSmartArtNodeAbove or msoSmartArtNodeAfter. |
Type | Optional | MsoSmartArtNodeType | Specifies the type of the added SmartArtNode; for example, msoSmartArtNodeTypeAssistant or msoSmartArtNodeTypeDefault. |
Return value
SmartArtNode
Example
The following code adds a default SmartArtNode below the current node.
Dim saNode As SmartArtNode
saNode = saNode.AddNode(msoSmartArtNodeBelow, msoSmartArtNodeTypeDefault)
See also
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.