In cell A1 i have the name of a horse downloaded from RPS.
A1 = Notable D´Estruval
This horse name contains an apostroph, the "´" which is not the usual " ' ".
Whith the code formula it apears to be char(63).
I want to replace it with usual apostroph within VBA.
I get the error "sub or fuction not definied" and the "CHAR" is highligted.
- Code: Select all
If InStr(Sheets("Temp").Range("A1").Value, CHAR(63)) = 0 Then .....
and the code stops without reaching the below "replace" code:
- Code: Select all
Sheets("Temp").Range("A1").Value = Replace(Sheets("Temp").Range("A1").Value, CHAR(63), CHAR(39))
It apears that the "CHAR" is not supported from VBA (at this form).
Any ideas? Other way for the "CHAR"?
Thanks