| Name | Type | Description |
|---|---|---|
| Name |
String
|
|
| Type | Specifies the type of shape, and returns cdrShapeType. |
|
| Recursive |
Boolean
|
Specifies whether to iterate through all shapes. |
Sub Test() Dim sr As ShapeRange Set sr = ActivePage.FindShapes(Type:=cdrRectangleShape) If sr.Count <> 0 Then sr.ApplyUniformFill CreateRGBColor(255, 0, 0) Else MsgBox "There are no rectangles on the current page" End If End Sub