Shapes.Placeholders property (PowerPoint)

Returns a Placeholders collection that represents the collection of all the placeholders on a slide. Read-only.

Syntax

expression. Placeholders

expression A variable that represents a Shapes object.

Return value

Placeholders

Remarks

Each placeholder in the Placeholders collection can contain text, a chart, a table, an organizational chart, or another object.

Example

This example adds a slide to the active presentation and then adds text to both the title (which is the first placeholder on the slide) and the subtitle.

Set myDocument = ActivePresentation.Slides(1)

With ActivePresentation.Slides _
        .Add(1, ppLayoutTitle).Shapes.Placeholders

    .Item(1).TextFrame.TextRange.Text = "This is the title text"
    .Item(2).TextFrame.TextRange.Text = "This is subtitle text"

End With

See also

Shapes Object

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.