Hello, I'm trying to make a Macro that contours to the inside by 0.01" retaining the original shape color and deleting the original shape. So far I have a code that does exactly what I'm looking for but it contours outside. I need it to contour inside.
Sub TrapV2()
Dim sOriginal As Shape
Dim sr_from_contour As ShapeRangeDim e As Effect
Set sOriginal = ActiveShape
Set e = sOriginal.CreateContour(, ConvertUnits(0.01, cdrInch, ActiveDocument.Unit), , , , sOriginal.Fill.UniformColor.GetCopy)Set sr_from_contour = e.Separatesr_from_contour(1).Name = "Shape from Contour"sOriginal.DeleteEnd Sub
I do not know how to write code, I only got this through Frankenstein-ing pieces of other peoples' discussions together. I just can't figure out how to contour inside.
This is something that I have to do all the time. The process can get pretty tedious after a while.
If anyone knows what I should do, I would really appreciate it.
Thanks!
Set e = sOriginal.CreateContour(cdrContourInside, ConvertUnits(0.01, cdrInch, ActiveDocument.Unit), , , , sOriginal.Fill.UniformColor.GetCopy)Set sr_from_contour = e.Separatesr_from_contour(1).Name = "Shape from Contour"sOriginal.DeleteEnd Sub
Thank you very much! that was driving me nuts. I use this as a trap so when the ink is spread through the screens it doesn't spread too much.
You're welcome.