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
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for