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

ShapeRange.Select Method (PowerPoint)

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

Selects the specified object.


expression. Select( Replace )

expression A variable that represents a ShapeRange object.


NameRequired/OptionalData TypeDescription
ReplaceOptionalMsoTriStateSpecifies whether the selection replaces any previous selection.


If you try to make a selection that isn't appropriate for the view, your code will fail. For example, you can select a slide in slide sorter view but not in slide view.

The Replace parameter value can be one of these MsoTriState constants.

msoFalseThe selection is added to the previous selection.
msoTrueThe default. The selection replaces any previous selection.


This example selects shapes one and three on slide one in the active presentation.

ActivePresentation.Slides(1).Shapes.Range(Array(1, 3)).Select

This example adds shapes two and four on slide one in the active presentation to the previous selection.

ActivePresentation.Slides(1).Shapes.Range(Array(2, 4)).Select

See also


ShapeRange Object

© 2018 Microsoft