Object Model Reference : Classes : S : Shape : Methods : Shape.CreateSelection |
Sub CreateSelection()
Member of Shape
The CreateSelection method selects a shape, automatically deselecting all other shapes on the page.
• |
See also the Shape.Selected property.
|
The following VBA example selects a shape with the name MyRectangle.
Sub Test() |
Dim s As Shape |
Set s = ActivePage.FindShape("MyRectangle") |
If Not s Is Nothing Then |
s.CreateSelection |
Else |
ActiveDocument.ClearSelection |
End If |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.