Shaping->Boundary from VBA

Is there an equivalent to Shaping->Boundary but within a VBA app?  the Shape class contains methods Weld, Combine, Trim, etc.. but no Boundary :(

TIA

(I posted on the wrong subforum I think.. moved here)

  • following code makes boundary for selected objects (tested on X5)
    Sub Boundary()
        Dim OrigSelection As ShapeRange
        Set OrigSelection = ActiveSelectionRange
        Dim s1 As Shape
        Set s1 = OrigSelection.CustomCommand("Boundary", "CreateBoundary")
    End Sub
    • It worked like a Charm, thank you!

      BTW, is this magic command documented anywhere? I'd love to see what else can you do with CustomCommand