Hi Jason,
this is one from my toolbox.
It inserts a line, which does not move with the text,
at the cursor position. The line properties are up to you.
Public Sub Test05()
Dim aLine As Object
Dim apos As Integer
' wdVerticalPositionRelativeToPage = 6
' wdVerticalPositionRelativeToTextBoundary = 8
' wdRelativeHorizontalPositionPage = 1
' wdRelativeVerticalPositionPage = 1
apos = Int(Selection.Information(6))
Set aLine = ActiveDocument.Shapes.AddLine(70, apos, 280, apos)
aLine.Select
With Selection.ShapeRange
.LockAnchor = False
.RelativeHorizontalPosition = 1
.RelativeVerticalPosition = 1
.Left = CentimetersToPoints(2.54)
.Top = apos
End With
With aLine.Line
.ForeColor.RGB = RGB(255, 0, 0)
.DashStyle = msoLineDash
End With
End Sub
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/