CanvasShapes.SelectAll method (Word)

Selects all the shapes in a canvas.

Syntax

expression.SelectAll

expression Required. A variable that represents a CanvasShapes object.

Remarks

This method doesn't select InlineShape objects.

Example

This example selects and deletes all the shapes inside the first canvas of the active document.

Sub SelectCanvasShapes() 
 Dim s As Shape 
 Set s = ActiveDocument.Shapes.Range(1) 
 s.CanvasItems.SelectAll 
 Selection.Delete 
End Sub

See also

CanvasShapes Collection

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.