Hi Everyone!
I dont understand why this code doesn't work.
Can anybody help me please?
I want to replace character numbers 1 - 31 with a space.
The code below results in all my data being replaced by a space (so essentially it deletes my data).
I anyone could help I would be most grateful ! :D
Many thanks,
Paddy
I dont understand why this code doesn't work.
Can anybody help me please?
I want to replace character numbers 1 - 31 with a space.
The code below results in all my data being replaced by a space (so essentially it deletes my data).
Code:
Sub Replace_Characters_One_To_ThirtyOne()
Dim i As Integer
For i 1 To 31
ThisWorkbook.Sheets1.Select
ThisWorkbook.Sheets1.Range("A:A").Select
Selection.Replace What:=Chr(i), Replacement:="", LookAt:=xlPart, MatchCase:=False
Next i
End Sub
I anyone could help I would be most grateful ! :D
Many thanks,
Paddy