Share via


Placeholders.FindByName Method (PowerPoint)

Finds the placeholder in the Placeholders collection at the specified index location or with the specified name.

Syntax

expression .FindByName(Index)

expression An expression that returns a Placeholders object.

Parameters

Name

Required/Optional

Data Type

Description

Index

Required

Variant

The index of the placeholder to be found.

Return Value

Shape

Remarks

Because it takes a Variant, the FindByName method makes it possible to locate a member of the Placeholders collection by specifying either the index number (an Integer or Long) or the name (a String) of an individual placeholder. Unlike the corresponding methods of other collections, such as Shapes or Slides, the Item method of the Placeholders collection takes only a Long.

Example

The following example shows how to use the FindByName method to select the title placeholder in slide one in the active presentation.

Public Sub FindByName_Example()

    

    PowerPoint.ActivePresentation.Slides(1).Shapes.Placeholders.FindByName("Title 1").Select



End Sub

See Also

Concepts

Placeholders Object

Placeholders Object Members