Finding within a range.

I

Ian B

Hi

I'm sure this is a very simple question to someone who fully understands
ranges. (I don't!)

How can I redefine a range as being from where the cursor is located, to the
end of the document.
I am doing it with bookmarks currently, but there must be an easier
technique.

Any help much appreciated.

TIA

Ian B
 
G

Greg Maxey

Sub SetRange()
Dim oRng As Word.Range
Set oRng = Selection.Range
oRng.End = ActiveDocument.Range.End
End Sub
 
T

Tony Jollans

Set YourRange = ActiveDocument.Range(Selection.Start,
ActiveDocument.Range.End)
 
I

Ian B

Thanks to you both.

I had spent quite some time with help and Google but ranges don't seem very
comprehensively written up, or maybe I just was looking in the wrong place..

Thanks again.

Ian B
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top