Hi
I have the word 'Thomson's' in cell C2, but I want to replace it with nothing, using VBA.
The code below replaces it with a blank space instead of nothing - if you use =len(C2) in cell D2 after the code is run, it shows that there is ONE character instead of zero characters.
Does anyone know how to replace text with nothing using VBA, please?
I have the word 'Thomson's' in cell C2, but I want to replace it with nothing, using VBA.
The code below replaces it with a blank space instead of nothing - if you use =len(C2) in cell D2 after the code is run, it shows that there is ONE character instead of zero characters.
Does anyone know how to replace text with nothing using VBA, please?
VBA Code:
Sub ReplaceThomsons()
Columns("C").Replace What:="Thomson's", _
Replacement:="", _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
MatchCase:=False, _
SearchFormat:=False, _
ReplaceFormat:=False
End Sub