SelectAll Method

Applies To

Shapes collection object.

Description

Selection object: Selects all the text in the selection.

Shapes object: Selects all the shapes in the main story of the document or in all the headers and footers in the document.

Syntax

expression.SelectAll

expression Required. An expression that returns a Shapes or Selection object.

Remarks

This method doesn't select InlineShape objects.

See Also

Select method, Selection object.

Example

This example selects all the text in the selection.

Selection.SelectAll
This example selects all the shapes in the active document.

ActiveDocument.Shapes.SelectAll
This example selects all the shapes in the headers and footers in the active document and adds a shadow to each shape.

With ActiveWindow
    .View.Type = wdPageView
    .ActivePane.View.SeekView = wdSeekCurrentPageHeader
End With
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Shapes.SelectAll
Selection.ShapeRange.Shadow.Type = msoShadow10