API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.RemoveFromSelection method
Removes the shape in the range from the current selection
Syntax:
Sub RemoveFromSelection()
Remarks:
The RemoveFromSelection method removes a shape range from a selection..
Examples:
The following VBA example removes all rectangles from the current selection.
Sub Test()
ActivePage.FindShapes(Type:=cdrRectangleShape).RemoveFromSelection 
End Sub