Hello,
I seem to have one hidden character at the front and another at the end of a text in a workbook.
I cannot find out what character it is and cannot remove if using CHAR(160) with CLEAN, TRIM, SUBSTITUTE.
I have only been able to find out that it is unicode 8237 at the beginning and unicode 8236 at the end.
Could you please help find a formula to remove these two hidden characters?
I have a VBA which is shown here but would like to use a formula.
Sub Kleanup()
Dim N1 As Long, N2 As Long
Dim Bad1 As String, Bad2 As String
N1 = 8237
Bad1 = ChrW(N1)
N2 = 8236
Bad2 = ChrW(N2)
Cells.Replace what:=Bad1, replacement:=" ", lookat:=xlPart
Cells.Replace what:=Bad2, replacement:=" ", lookat:=xlPart
End Sub
Thank you.
I seem to have one hidden character at the front and another at the end of a text in a workbook.
I cannot find out what character it is and cannot remove if using CHAR(160) with CLEAN, TRIM, SUBSTITUTE.
I have only been able to find out that it is unicode 8237 at the beginning and unicode 8236 at the end.
Could you please help find a formula to remove these two hidden characters?
I have a VBA which is shown here but would like to use a formula.
Sub Kleanup()
Dim N1 As Long, N2 As Long
Dim Bad1 As String, Bad2 As String
N1 = 8237
Bad1 = ChrW(N1)
N2 = 8236
Bad2 = ChrW(N2)
Cells.Replace what:=Bad1, replacement:=" ", lookat:=xlPart
Cells.Replace what:=Bad2, replacement:=" ", lookat:=xlPart
End Sub
Thank you.