P
Paul Appleby
I'm using Find on a range object with a limited range to try and avoid
searching more of the document than necessary as I'm repeating the operation
many times.
In most circumstances the result returns within the range (assuming there is
a match). However when the entire selected range matches what is being
searched for (which may include formatting and/or wildcards) then Word
returns the next available match within the document - even though it is
outside of the range being searched.
It seems to me that if the properties of the range match what is being
searched for then Word will not return the range as the result but return the
next possible match. Can someone confirm if this is what is happening? And if
so, can someone suggest a possible way to stop it from happening?
Thanks
Paul
searching more of the document than necessary as I'm repeating the operation
many times.
In most circumstances the result returns within the range (assuming there is
a match). However when the entire selected range matches what is being
searched for (which may include formatting and/or wildcards) then Word
returns the next available match within the document - even though it is
outside of the range being searched.
It seems to me that if the properties of the range match what is being
searched for then Word will not return the range as the result but return the
next possible match. Can someone confirm if this is what is happening? And if
so, can someone suggest a possible way to stop it from happening?
Thanks
Paul