AddHorizontalLineStandard Method

Adds a horizontal line to the current document.


expression Required. An expression that returns an InlineShapes object.

Range    Optional Variant. The range above which Microsoft Word places the horizontal line. If this argument is omitted, Word places the horizontal line above the current selection.


To add a horizontal line based on an existing image file, use the AddHorizontalLine method.


This example adds a horizontal line above the fifth paragraph in the active document.

ActiveDocument.Paragraphs(5).Range _

Applies to | InlineShapes Collection Object

See Also | AddHorizontalLine Method | HorizontalLineFormat Object