>>Rip,
>>
>>> It will replace some of them but not all even when the slugs are exactly the same.
>>
>>I tend to believe that the slugs are not the same as you think they are.
>>
>>strtran() is going to do an exact search for the target text, things like uppercase, lowercase, spaces, carriage returns, linefeeds, rtf codes in the stream will affect your result. You should probably look at the rtf file with the hexedit.app to see if your slugs really are all the same.
>
>The rtf codes were the problem. The "slugs" looked fine but when viewed with an RTF editor but when viewed as plain text you could see the rtf codes in there. Thanks every one for the suggestions.
If the RTF codes followed a pattern that could be identified by a regular expression, you might be able to use the VBScript.RegExp object to strip or ignore the RTF codes. Regular expressions elminiation can be done fairly easily using the VBscript.RegExp Execute method, which is used to extract occurances of patterns from a string as a collection, indicating the exact value found, it's location, and size.