Adds a horizontal line to the current document.
expression.AddHorizontalLineStandard(Range)
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.
Remarks
To add a horizontal line based on an existing image file, use the AddHorizontalLine method.
Example
This example adds a horizontal line above the fifth paragraph in the active document.
ActiveDocument.Paragraphs(5).Range _
.InlineShapes.AddHorizontalLineStandard