How to get center of selection in VBA?

Welcome. Is there any way to get coordinates of origin selection point ?

I have written a simple macro that copies the width to the selected objects from another object, and I am looking for a way to keep the origins points of the objects in place.

that is the code:

Sub CopyWidth()

    ActiveDocument.Unit = cdrMillimeter
    Dim s As Shape, sBeMySize As Shape
    Dim sr As ShapeRange
  
    
    If ActiveSelectionRange.Count < 2 Then
          MsgBox "Nothing Selected !"
         Exit Sub
       Else
        
          
          Set sr = ActiveSelectionRange.ReverseRange
          Set sBeMySize = sr.LastShape
          sBeMySize.GetSize w, h
    
    sr.Remove sr.IndexOf(sBeMySize)
    
    ActiveDocument.BeginCommandGroup "group"
    For Each s In sr.Shapes
        s.SetSize w, y
    Next s
    
    End If
    ActiveDocument.EndCommandGroup
End Sub