Assume A1 = ...banana
I want to remove the 3 dots
my code - which nearly does it - is
Sub Test()
For j = 1 To 2
For i = 1 To Len(Cells(j, 1))
z = Asc(Mid(Cells(j, 1), i, 1))
If z < 48 Then GoTo 100
If z > 57 Then If z < 65 Then GoTo 100
If z > 90 Then If z < 97 Then GoTo 100
If z > 122 Then GoTo 100
GoTo 50
100 Cells(j, 1).Characters(Start:=i, Length:=1).Delete
50 Next i
Next j
200 End Sub
but when i=9 it stops and errors at the line commencing z=Asc(
Can anybody tell me why please
( I am developing this code to help with a current post on here)
I want to remove the 3 dots
my code - which nearly does it - is
Sub Test()
For j = 1 To 2
For i = 1 To Len(Cells(j, 1))
z = Asc(Mid(Cells(j, 1), i, 1))
If z < 48 Then GoTo 100
If z > 57 Then If z < 65 Then GoTo 100
If z > 90 Then If z < 97 Then GoTo 100
If z > 122 Then GoTo 100
GoTo 50
100 Cells(j, 1).Characters(Start:=i, Length:=1).Delete
50 Next i
Next j
200 End Sub
but when i=9 it stops and errors at the line commencing z=Asc(
Can anybody tell me why please
( I am developing this code to help with a current post on here)