Hello all
I am trying to delete numbers from a list. Problem is, if for example I want to delete just '6', it will also delete the 6 from 46. How can I get around this?
This is some part of my code
Code:
If CheckBox1 = True Then
Word = "1"
Selection.Replace What:=Word, Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End If
If CheckBox2 = True Then
Word = "2"
Selection.Replace What:=Word, Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End If
Does any one know how to get around this ? Thank you !