View Single Post
 
Old 07-02-2017, 09:44 PM
paik1002 paik1002 is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: Dec 2015
Posts: 63
paik1002 is on a distinguished road
Default

I am planning to use it mostly for navigational purposes combined with editing functions such as copy/paste. I do get lost a lot when moving around in a document, so I found it convenient to keep track of past edits.

Since you mention the versatility of ranges,
may I ask further how I can extend or contract ranges given the current selection of text (e.g. oRng.Select) or the memory of it (e.g. Set oRng = Selection.Range)?
Maybe add/subtract an adjacent word at the outer periphery (front or back) of the current selection of text.

For example:
the body of text is: Hello there how are you doing these days?
current selection: how are you doing
add to selection: how are you doing these days?
subtract to selection: how are you

Please kindly provide example VB codes if possible.
Reply With Quote