Share via


Shape.Delete Method

PowerPoint Developer Reference

Deletes the specified Shape object.

Syntax

expression.Delete

expression   A variable that represents a Shape object.

Example

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

Visual Basic for Applications
  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

See Also