or you could make things a lot, lot simpler and use VB's built in replace function. DOH!

Code:
  x = Replace (sString, sFind, SReplace)
[Edited by Iain17 on 04-18-2000 at 05:44 PM]