Microsoft KB Archive/164816

From BetaArchive Wiki
Knowledge Base


WD97: DocErr: HasHorizontal/HasVertical Property Returns True for Single Table Cell or Paragraph

Article ID: 164816

Article Last Modified on 1/19/2007



APPLIES TO

  • Microsoft Word 97 Standard Edition



This article was previously published under Q164816


SYMPTOMS

When you use the HasHorizontal or HasVertical property on a single table cell or paragraph, the property returns True, instead of False as expected.

Visual Basic for Applications Help for these properties states that the properties should return False for a single specified object, as in the following Help examples:

HasHorizontal Property

True if a horizontal border can be applied to the object. Read-only Boolean.

Remarks

Horizontal borders can be applied to ranges that contain cells in two or more rows of a table, or ranges that contain two or more paragraphs.


HasVertical Property

True if a vertical border can be applied to the specified object. Read-only Boolean.

Remarks

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


CAUSE

This functionality is by design in Microsoft Word and is an error in Microsoft Visual Basic Help. A horizontal or vertical border can be applied (preset) to a range that contains a single paragraph or table cell. When you press ENTER to create a new paragraph, or press TAB to create a new table row, the horizontal or vertical border is automatically applied.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

For more information about the HasVertical property, from the Visual Basic Editor, click Contents and Index on the Help menu, click the Index tab in Microsoft Word Help, type the following text

borders collection object


and then double-click the selected text to go to the "HasVertical Property" topic. If you are unable to find the information you need, ask the Office Assistant.

For more information about the HasHorizontal property, from the Visual Basic Editor, click Contents and Index on the Help menu, click the Index tab in Microsoft Word Help, type the following text

borders collection object


and then double-click the selected text to go to the "HasHorizontal Property" topic. If you are unable to find the information you need, ask the Office Assistant.


REFERENCES

For additional information about getting help with Visual Basic for Applications, click the article numbers below to view the articles in the Microsoft Knowledge Base:

163425 WD97: Macro Programming Resources


163435 VBA: Programming Resources for Visual Basic for Applications



Additional query words: wordcon vb vba vbe

Keywords: kbdtacode kbhelp kbprb kbprogramming KB164816