"BorderLineStyle 0" Does Not Remove Border

ID: Q113978


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

Additional query words: 6.00a macro macros winword word6

Keywords :
Version : WINDOWS:6.0,6.0a
Platform : WINDOWS
Issue type :


Last Reviewed: January 7, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.