SelectAll Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Selects all the shapes in the specified CanvasShapes, DiagramNodeChildren, DiagramNodes, or Shapes collection.

expression.SelectAll

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

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

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