P
Patrick Pirtle
Well, I've gotten close. I'm trying to draw a line a specific
distance to the left of the beginning of the current paragraph.
The code below works in my test document, but in the
actual working document, all it does is move the selection to
the beginning of the line of text--it never draws the graphic
line.
Sub test()
Dim xLoc As Integer
Dim yLoc As Integer
Selection.MoveStart wdLine
Selection.MoveUp wdLine
xLoc = Selection.Information(wdHorizontalPositionRelativeToPage)
yLoc = Selection.Information(wdVerticalPositionRelativeToPage)
With ActiveDocument.Shapes.AddLine(xLoc - 25, yLoc, xLoc - 25, yLoc +
15).Line
.EndArrowheadStyle = msoArrowheadDiamond
.BeginArrowheadStyle = msoArrowheadDiamond
.ForeColor = RGB(0, 128, 0)
End With
Any suggestions? TIA for your help.
____________________________________________
The impossible just takes a little longer...
distance to the left of the beginning of the current paragraph.
The code below works in my test document, but in the
actual working document, all it does is move the selection to
the beginning of the line of text--it never draws the graphic
line.
Sub test()
Dim xLoc As Integer
Dim yLoc As Integer
Selection.MoveStart wdLine
Selection.MoveUp wdLine
xLoc = Selection.Information(wdHorizontalPositionRelativeToPage)
yLoc = Selection.Information(wdVerticalPositionRelativeToPage)
With ActiveDocument.Shapes.AddLine(xLoc - 25, yLoc, xLoc - 25, yLoc +
15).Line
.EndArrowheadStyle = msoArrowheadDiamond
.BeginArrowheadStyle = msoArrowheadDiamond
.ForeColor = RGB(0, 128, 0)
End With
Any suggestions? TIA for your help.
____________________________________________
The impossible just takes a little longer...