F
Fool
I know this has been asked before, but my Google search only turned up
threads that didn't satisfactorily answer the question (at least for
me)...
I want to find as many instances of XYZ as possible within a range
(Range1) of a document. I set up a Find operation using Range1.Find,
and add all hits to a collection.
The problem is that Range1.Find works by resetting Range1 to whatever
it finds. It reliably finds every instance of XYZ starting with the
start of the original Range1, and going to the very end of the
document... in other words, it doesn't stop when I want it to, as the
original parameters of Range1 were lost with the first hit.
(I personally think this is an awkward way of implementing Search...)
OK, so what is the simplest / most elegant / most universally accepted
way of forcing Word to only return hits from within that initial
range?
TIA!
Fool
threads that didn't satisfactorily answer the question (at least for
me)...
I want to find as many instances of XYZ as possible within a range
(Range1) of a document. I set up a Find operation using Range1.Find,
and add all hits to a collection.
The problem is that Range1.Find works by resetting Range1 to whatever
it finds. It reliably finds every instance of XYZ starting with the
start of the original Range1, and going to the very end of the
document... in other words, it doesn't stop when I want it to, as the
original parameters of Range1 were lost with the first hit.
(I personally think this is an awkward way of implementing Search...)
OK, so what is the simplest / most elegant / most universally accepted
way of forcing Word to only return hits from within that initial
range?
TIA!
Fool