Scale to boundingbox of Active selection

would like to scale each object of the active selection to the bounding box of the activeselection.  

Parents
No Data
Reply
  • Sub ScaleToBoundingBox1()

    Dim s As shape
    Dim sr As New ShapeRange
    Dim x As Double, y As Double, w As Double, h As Double

    Set sr = ActiveSelectionRange
    x = sr.BoundingBox.x
    y = sr.BoundingBox.y
    w = sr.BoundingBox.width
    h = sr.BoundingBox.height

    For Each s In sr
    s.SetSize w, h
    Next s

    End Sub
    i tried this upto... not working at all

Children
No Data