API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.SetPosition method
Moves a shape to a specific location
Syntax:
Sub SetPosition(ByVal PositionX As Double, ByVal PositionY As Double)
Parameters:
Name Type Description
PositionX
Double
PositionY
Double
Remarks:
The SetPosition method moves a shape to a given position on the page. The specified coordinates of the new position are relative to the shape's reference point, as specified by the Document.ReferencePoint property.
Examples:
The following VBA example sets the current position of each shape on the page to the bottom-left corner of the page.
Sub Test()
Dim s As Shape
Dim x As Double, y As Double
For Each s In ActivePage.Shapes
  s.SetPosition 0, 0
Next s 
End Sub