Article ID: 183221
Article Last Modified on 6/17/2005
Selection.Border.LineStyle = xlNone
-or-
Selection.Border.LineStyle = xlLineStyleNone
Selection.ShapeRange.Line.Visible = msoFalse
Fill type Results
------------------------------------------------------------------------
Solid Color The line is removed correctly.
Gradient You receive the "Run-time error '1004'" error message,
and the line is NOT removed.
Pattern The line is removed correctly, but the pattern may be
replaced by another, different pattern.
Texture The line is removed correctly, but the texture fill is
removed and replaced with a solid white fill.
Picture The line is removed correctly, but the picture fill is
removed completely so that the object is transparent.
To work around these problems, use the line of code in the "Workaround"
section whenever you want to remove the border line from a drawing object.
Additional query words: XL98
Keywords: kbhowto kbprogramming KB183221