Paul,
Your best bet rather then re-invent the wheel is to plunk down some change and buy Rick Fisher's Find & Replace utility. Here's the URL:
www.rickworld.com
Well worth the money in my opinion. Has saved me countless hours.
JimD