Share via


ShapeRange.Select Method

Selects the specified object.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Sub Select ( _
    Replace As MsoTriState _
)
'Usage
Dim instance As ShapeRange
Dim Replace As MsoTriState

instance.Select(Replace)
void Select(
    MsoTriState Replace
)

Parameters

Remarks

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.

Examples

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

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.PowerPoint Namespace