Article ID: 157556
Article Last Modified on 10/11/2006
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
shown above, 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 now transparent.
To avoid these problems, use the line of code shown in the "Workaround"
section whenever you want to remove the border line from a drawing object.
Additional query words: XL97 8.0 Run time error 1004
Keywords: kbbug kbdtacode kberrmsg kbpending kbprogramming KB157556