Im looking for any Macro which can convert image into powerclip. If i select an image it should create a vector boundary around the image and insert inside the shape (powerclip). Anyway or help to create the Macro. I tried to record the macro but it did not work. Thanks
try this
Sub ImageAsPowerclip()Dim sr As ShapeRange, s As Shape, x#, y#, w#, h# Dim nsr As ShapeRange ActiveDocument.BeginCommandGroup "ImageAsPowerclip" Optimization = TrueSet sr = ActiveSelectionRangeIf sr.Count = 0 Then Exit SubActiveDocument.Unit = cdrMillimeterFor Each s In srs.GetBoundingBox x, y, w, hs.CreateBoundary x, y, True ActiveSelection.Outline.SetNoOutline
s.AddToSelection
Set nsr = ActiveSelectionRange
nsr.Shapes(1).AddToPowerClip nsr.Shapes(2), cdrTrue
Next s Optimization = False ActiveWindow.Refresh ActiveDocument.EndCommandGroupEnd Sub