次の方法で共有


Shapes.SelectAll Method (Word)

Selects all the shapes in a collection of shapes.

Syntax

expression .SelectAll

expression Required. A variable that represents a Shapes collection.

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

Concepts

Shapes Collection Object

Shapes Object Members