ShapeNodes.Delete method (Publisher)

Deletes the specified shape node object.

Syntax

expression.Delete (Index)

expression A variable that represents a ShapeNodes object.

Parameters

Name Required/Optional Data type Description
Index Required Integer/Long The number of the shape node to delete.

Example

This example deletes the first node in the first shape in the active publication.

Sub DeleteNode() 
 ActiveDocument.Pages(1).Shapes(1).Nodes.Delete Index:=1 
End Sub

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.