Shapes.SelectAll method (Word)
Selects all the shapes in a collection of shapes.
Syntax
expression.SelectAll
expression Required. A variable that represents a Shapes object.
Remarks
This method does not select InlineShape objects. You cannot use this method to select more than one canvas.
Example
This example selects all the shapes in the active document.
Sub SelectAllShapes()
ActiveDocument.Shapes.SelectAll
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
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Shapes.SelectAll
With Selection.ShapeRange.Shadow
.Type = msoShadow10
.ForeColor.RGB = RGB(220, 0, 0)
End With
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for