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.
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.
Cheers
Paul Edstein
[Fmr MS MVP - Word]
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.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?
Remember To Do the Following....
Use [Code].... [/Code] tags when posting code to the thread.
Mark your thread as Solved if satisfied by using the Thread Tools options.
If posting the same issue to another forum please show the link