WD97: HasHorizontal/HasVertical Return True for Single Object

Last reviewed: March 10, 1998
Article ID: Q164816
The information in this article applies to:
  • Microsoft Word 97 for Windows

SYMPTOMS

When you use the HasHorizontal or HasVertical Properties on a single specified object(for example, a single table cell or paragraph) the property returns True instead of False as expected. Visual Basic for Applications help for these properties state the properties should return False for a single specified object; as in the following:

   HasHorizontal/HasVertical Property
   ----------------------------------

   True if a vertical border can be applied to the specified object.

The remarks section for these properties further states:

   Vertical borders can be applied to ranges that contain cells in two or
   more columns of a table.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The Visual Basic for Applications Help information is misleading. A horizontal or vertical border can also be applied to a range that contains a single cell in a single row of a table or to a single paragraph.

REFERENCES

For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q163435
   TITLE     : VBA: Programming Resources for Visual Basic for 
               Applications


Additional query words: vb vba vbe
Keywords : kbprg kbdta kbdtacode kbwordvba word8 word97 kbhelp
Version : 97
Platform : WINDOWS
Issue type : kbdocerr


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: March 10, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.