Thread: [Solved] Separate Find Replace
View Single Post
 
Old 04-23-2017, 05:13 PM
Bazzao Bazzao is offline Windows 10 Office 2003
Novice
 
Join Date: Apr 2017
Posts: 3
Bazzao is on a distinguished road
Default

Basically the conditions are the finds are within a range of the document.

The range has been found by another process.

So if the find is > LowerLimit and < UpperLimit then replace. LowerLimit and UpperLimit are long integer variables.

After posting the question, a solution came to me. But I don't know how to code it.

The code would be:

* Select from LowerLimit to UpperLimit.
* Search (multiple searches) and replace within that range.

As there are multiple find/replaces, the selection would have to remain intact.

An issue would be where the replacement text is not of the same length as the find text.
Reply With Quote