Hi ..
i want to create macro to select object inside powerclip and flip it, this my code
Sub flip_object_inside_powerclip()Dim sr As ShapeRange, s As ShapeDim sr1 As ShapeRange, sr2 As ShapeRange, sr3 As ShapeRange, sr4 As ShapeRangeDim x As Double, y As Double, w As Double, h As DoubleActiveDocument.Unit = cdrMillimeterIf ActiveSelection.Shapes.Count = 0 Then ActivePage.Shapes.All.CreateSelectionSet sr = ActiveDocument.SelectionRangesr.GetBoundingBox x, y, w, hSet s = ActiveLayer.CreateRectangle2(x - 2, y - 2, w + 4, h + 4)s.Fill.ApplyNoFillActiveLayer.Shapes.All.CreateSelectionsr.AddToPowerClip s, cdrTrues.PowerClip.EnterEditModeSet sr = ActiveSelection.DuplicateAsRangeActiveDocument.ReferencePoint = cdrMiddleRightsr.Stretch -1#, 1#sr.OrderToFrontEnd Sub
-----------------------------
how to select only object inside powerclip? my macro duplicate both rectangle and inside powerclip, i want just object inside powerclip
thanks