SelectAll Method

Applies To

Shapes collection object.

Description

Selects all the shapes in the specified Shapes collection.

Syntax

expression.SelectAll

expression Required. An expression that returns a Shapes object.

Example

This example selects all the shapes on myDocument and creates a ShapeRange object containing all the shapes.

Set myDocument = Worksheets(1)
myDocument.Shapes.SelectAll
Set sr = Selection.ShapeRange