E
Eternally Grateful
Jezebel,
Your earlier response to my issue works perfectly by itself. But when I add
it to an IF statement, the macro completely runs over it bringing back a
negative response, therefore treating the line of code as if it had been
commented out.
Would you have any idea as to what the problem could be...
My code is...
If InStr(1, MyData, Chr(150)) > 0 Then
MyData = Replace$(OldData, Chr$(150), "-")
End If
*******************************************************
em-dash is chr(150)
BTW, the string versions of these functions are about 10 times faster than
the variant equivalents --
MyData = Replace$(OldData, chr$(150), "-")
Your earlier response to my issue works perfectly by itself. But when I add
it to an IF statement, the macro completely runs over it bringing back a
negative response, therefore treating the line of code as if it had been
commented out.
Would you have any idea as to what the problem could be...
My code is...
If InStr(1, MyData, Chr(150)) > 0 Then
MyData = Replace$(OldData, Chr$(150), "-")
End If
*******************************************************
em-dash is chr(150)
BTW, the string versions of these functions are about 10 times faster than
the variant equivalents --
MyData = Replace$(OldData, chr$(150), "-")