Shapes.SelectAll Method (Word)

Selects all the shapes in a collection of shapes.


expression. SelectAll

expression Required. A variable that represents a 'Shapes' collection.


This method does not select InlineShape objects. You cannot use this method to select more than one canvas.


This example selects all the shapes in the active document.

Sub SelectAllShapes() 
End Sub

This example selects all the shapes in the headers and footers of the active document and adds a red shadow to each shape.

Sub SelectAllHeaderShapes() 
 With ActiveDocument.ActiveWindow 
 .View.Type = wdPrintView 
 .ActivePane.View.SeekView = wdSeekCurrentPageHeader 
 End With 
 With Selection.ShapeRange.Shadow 
 .Type = msoShadow10 
 .ForeColor.RGB = RGB(220, 0, 0) 
 End With 
End Sub

See also

Shapes Collection Object