AddHorizontalLineStandard Method Example

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

ActiveDocument.Paragraphs(5).Range _
    .InlineShapes.AddHorizontalLineStandard