View Single Post
 
Old 10-06-2019, 08:54 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The macro example finds text within a paragraph by adjusting the range accordingly. The paragraph range is set by
Code:
Set oRng = oPara.Range
which is the complete paragraph including the paragraph break which ends it.

If you want to locate the start of that paragraph then collapse the range to its start e.g
Code:
oRng.Collapse 1
You would then need to do something with that range before the macro moves on to the next paragraph.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote