Dim tempstr as string
tempstr = Replace(string1,"xt","ab")
string1 = tempstr
Now I believe string1 should be "some teab", but in fact it is unchanged.
What can be wrong?
I must add, that I haven't touched vb for more than 10 years, so I'm feeling my way into the syntax again...
Yep what you have shown would work, if that is your actual code then how are you checking string1 to see what the value is? If that is not the actual code then be sure to keep in mind that many string functions are case sensitive by default.