I make a lot of instruction sheets using screen captures and directions in Word, so I use a lot of "red" elipses. (easy to see)
I created a macro to put in an elipse, changed the line thickness and the line color and the fill color to none.
But when I run the macro it does eveything but change the fill to none. I have to right click it and then pick colors and lines tab and set fill to none again everytime.
I even tried making a macro to redo it but I can't seem to spot the fill thingy in the VBA code.
any ideas?
TIA
DougP
I created a macro to put in an elipse, changed the line thickness and the line color and the fill color to none.
But when I run the macro it does eveything but change the fill to none. I have to right click it and then pick colors and lines tab and set fill to none again everytime.
I even tried making a macro to redo it but I can't seem to spot the fill thingy in the VBA code.
any ideas?
Code:
Sub RedElipse()
'
' RedElipse Macro
' Macro recorded 1/13/2011 by xxxx
'
ActiveDocument.Shapes.AddShape(msoShapeOval, 198#, 153#, 54#, 27#) _
.Select
Selection.ShapeRange.Fill.Visible = msoFalse
Selection.ShapeRange.Fill.Solid
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 1.5
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoTrue
Selection.ShapeRange.Line.ForeColor.RGB = RGB(255, 0, 0)
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Rotation = 0#
Selection.ShapeRange.Left = 198#
Selection.ShapeRange.Top = 153.35
Selection.ShapeRange.RelativeHorizontalPosition = _
wdRelativeHorizontalPositionColumn
Selection.ShapeRange.RelativeVerticalPosition = _
wdRelativeVerticalPositionParagraph
Selection.ShapeRange.Left = InchesToPoints(1.5)
Selection.ShapeRange.Top = InchesToPoints(1.13)
Selection.ShapeRange.LockAnchor = False
Selection.ShapeRange.LayoutInCell = True
Selection.ShapeRange.WrapFormat.AllowOverlap = True
Selection.ShapeRange.WrapFormat.Side = wdWrapBoth
Selection.ShapeRange.WrapFormat.DistanceTop = InchesToPoints(0)
Selection.ShapeRange.WrapFormat.DistanceBottom = InchesToPoints(0)
Selection.ShapeRange.WrapFormat.DistanceLeft = InchesToPoints(0.13)
Selection.ShapeRange.WrapFormat.DistanceRight = InchesToPoints(0.13)
Selection.ShapeRange.WrapFormat.Type = 3
Selection.ShapeRange.ZOrder 4
End Sub
TIA
DougP