XL97: Problems When Removing Line from Drawing Object (157556)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q157556 SYMPTOMS
In Microsoft Excel, if you use a Microsoft Visual Basic for Applications macro to remove the border line from a drawing object or AutoShape, one of the following problems may occur:
CAUSE
These problems may occur if you try to use either of the following lines of
code to remove the border line from a drawing object, such as a rectangle
or an oval:
Selection.Border.LineStyle = xlNone
Selection.Border.LineStyle = xlLineStyleNone
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
In Excel, use the following line of code if you want to remove
the border line from a drawing object:
Selection.ShapeRange.Line.Visible = msoFalse
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kbdtacode kberrmsg kbpending kbProgramming KB157556 |
---|
|