Welding Shapes with VBA?

Since this Action cannot be recorded, is there a function that I can use to use the Welding Tool. It's a basic Ellipse over a Square (Back Minus Front).

  • Select two shapes and then Try this

    Sub Macro1()
         Dim s As Shape, s1 As Shape, s2 As Shape, SR As ShapeRange

         Set SR = ActiveSelectionRange
         Set s1 = SR.Shapes.Last
         Set s2 = SR.Shapes.First

         'Set s = s2.Trim(s1)
         'or
         Set s = s1.Trim(s2)
    End Sub

    Regards
    Taras