I haven't looked at this for a while but I think sometimes an edge-case like this can reach a point where the complexity to avoid it is more effort than just looking for instances AFTER the problem has been introduced.
What if you just run another find/replace after the main part of the macro has run to clear any unfortunate instances that you just introduced?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|