"BorderLineStyle 0" Does Not Remove Border

Last reviewed: August 4, 1997
Article ID: Q113978
6.00 6.00a WINDOWS kbusage kbmacro

The information in this article applies to:

  • Microsoft Word for Windows, versions 6.0, 6.0a

SYMPTOMS

In a macro that contains the BorderLineStyle command, setting the width parameter to 0 (None) results in a border width of 3/4 points.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Word versions 6.0 and 6.0a for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND

To remove a border using a macro, use a 0 parameter with the Border command. For example, the following lines in a macro remove respective borders from the paragraph they are applied to:

   BorderOutside 0
   BorderTop 0
   BorderLeft 0

MORE INFORMATION

If you manually set a border line style to None, and then apply the border to a paragraph that already has a border of any width, any previously applied border will be removed. If the border line width is set to None in a macro using the "BorderLineStyle 0" command, the result does not remove the existing border but replaces the existing border with a 3/4 pt. border.

REFERENCES

"Microsoft Word Developer's Kit," page 276-277

Kbcategory: kbusage kbmacro KBSubcategory:


Additional reference words: 6.00 6.00a macro macros winword word6
Version : 6.00 6.00a
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 4, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.