Table of contents
TOC
Collapse the table of content
Expand the table of content

Shape.Delete Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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.

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

Concepts

Shape Object

© 2018 Microsoft