L
LEU
I have the following macro that draws a horizontal line in my document
relative to where the cursor is in the document. I need to go back into all
the documents and make my line shorter. Is there a way to write a macro to go
through my document and find each line and make it shorter? I need to change
the 499 to 524.
Sub hLine1()
Dim oFFline As Shape
Dim i
On Error GoTo Endthis
i = Selection.Information(wdVerticalPositionRelativeToPage)
Set oFFline = ActiveDocument.Shapes.AddLine(554, i + 12, 499, i + 12)
oFFline.Name = "hline" & idx
idx = idx + 1
Endthis:
End Sub
relative to where the cursor is in the document. I need to go back into all
the documents and make my line shorter. Is there a way to write a macro to go
through my document and find each line and make it shorter? I need to change
the 499 to 524.
Sub hLine1()
Dim oFFline As Shape
Dim i
On Error GoTo Endthis
i = Selection.Information(wdVerticalPositionRelativeToPage)
Set oFFline = ActiveDocument.Shapes.AddLine(554, i + 12, 499, i + 12)
oFFline.Name = "hline" & idx
idx = idx + 1
Endthis:
End Sub