one more question, is replace function case sensitive?
By default, yes. Unless you have
Option Compare Text
Here's an example
Dim str As String
str = "ABC"
str = Replace(str, "b", "x", , , vbBinaryCompare)
results "ABC" and vbBinaryCompare is the default compare method in VB6
str = Replace(str, "b", "x", , , vbTextCompare)
results "AxC".
If you put a breakpoint in the line
strResult = Replace(strRTF, Mystring3, strHex3)
what would strRTF, Mystring3 and strHex3 contain?
Teme64
Veteran Poster
1,031 posts since Aug 2008
Reputation Points: 218
Solved Threads: 203