Shapes.AddPlaceholder (PowerPoint)

Restores a previously deleted placeholder on a slide. Returns a Shape object that represents the restored placeholder.

If more than one placeholder of a specified type has been deleted from the slide, the AddPlaceholder method will add them back to the slide, one by one, starting with the placeholder that has the lowest original index number.

AddPlaceholder (Type, Left, Top, Width, Height)

Dim shpAddPlaceholder As Shape
Set shpAddPlaceholder = ActiveWindow.Selection.SlideRange(1).Shapes.AddPlaceholder(Type:=ppPlaceholderBitmap)

Arguments

The following argument is required

Type (PpPlaceholderType) - The type of placeholder. Placeholders of type ppPlaceholderVerticalBody or ppPlaceholderVerticalTitle are found only on slides of layout type ppLayoutVerticalText, ppLayoutClipArtAndVerticalText, ppLayoutVerticalTitleAndText, or ppLayoutVerticalTitleAndTextOverChart. You cannot create slides with any of these layouts from the user interface; you must create them programmatically by using the Add method or by setting the Layout property of an existing slide.


Here you can find possible values for

PpPlaceholderType

Optional arguments

The following arguments are optional

Left (Single) - The position (in points) of the upper-left corner of the placeholder relative to the upper-left corner of the document.

Top (Single) - The position (in points) of the upper-left corner of the placeholder relative to the upper-left corner of the document.

Width (Single) - The width of the placeholder, in points.

Height (Single) - The height of the placeholder, in points.