Export (0) Print
Expand All

Delete Method

Office 2003

Deletes a shape node.

expression.Delete(Index)

expression    Required. An expression that returns a ShapeNodes object.

Index    Required Long. Specifies the node to be deleted. The segment following that node will also be deleted. If the node is a control point of a curve, the curve and all of its nodes will be deleted.

Deletes a tag.

expression.Delete(Name)

expression    Required. An expression that returns a Tags object.

Name   Required String. Specifies the name of the tag to be deleted.

Deletes the specified object.

expression.Delete

expression    Required. An expression that returns one of the objects in the Applies To list except for the ShapeNodes and Tags objects.

Remarks

Attempting to delete the only existing row or column in a table will result in a run-time error.

Example

This example deletes all freeform shapes from slide one in the active presentation.

With Application.ActivePresentation.Slides(1).Shapes
    For intShape = .Count To 1 Step -1
        With .Item(intShape)
            If .Type = msoFreeform Then .Delete
        End With
    Next
End With
				




Show:
© 2014 Microsoft