Shape.Select Method (PowerPoint)

Selects the specified object.


expression. Select( _Replace_ )

expression A variable that represents a Shape object.


Name Required/Optional Data Type Description
Replace Optional MsoTriState Specifies 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.

Constant Description
msoFalse The selection is added to the previous selection.
msoTrue The default. The selection replaces any previous selection.


This example selects shape one on slide one in the active presentation.


See also

Shape Object