Line 1
Line 2
Line 3
Line 4
......
the end
I have a multi-page text. Is there a way to choose from the 4th line down at the end of that text? Thank you all.
Printable View
Line 1
Line 2
Line 3
Line 4
......
the end
I have a multi-page text. Is there a way to choose from the 4th line down at the end of that text? Thank you all.
Yes, but we'd need to know a lot more about the document structure and the content you're working with.
If by line, you mean paragraph and if you mean the fourth line on page one then:
... however, as Paul states, that works on the very limited conditions given.Code:Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Range
Set oRng = ActiveDocument.Range.Paragraphs(4).Range
oRng.Collapse wdCollapseEnd
oRng.End = ActiveDocument.Range.End
oRng.Select
lbl_Exit:
Exit Sub
End Sub
Ok, thank you gmaxey
@lamnbj Has either of Paul's or Greg's responses been helpful? if not, can you indicate where they seem to come unstuck?