What is wrong with this code?
I am only searching in one column.
I want a full match with "NEST" only and not partial string matches.
For example it found NEST in "Big Bird Nest" and replaced it with "Big Bird Nest" again, so the result came out "Big Big Bird Bird Nest Nest". How do I make it only replace when it finds only one NEST in the cell?
I tried to add
but it didn't work.
Other than that the VBA script works great for finding & replacing.
I am only searching in one column.
I want a full match with "NEST" only and not partial string matches.
For example it found NEST in "Big Bird Nest" and replaced it with "Big Bird Nest" again, so the result came out "Big Big Bird Bird Nest Nest". How do I make it only replace when it finds only one NEST in the cell?
I tried to add
VBA Code:
LookAt:=xlWhole
Other than that the VBA script works great for finding & replacing.
VBA Code:
' Replace NEST,
myRange.Replace what:="NEST", Replacement:="Big Bird Nest", lookat:=xlPart, _
LookAt:=xlWhole, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False,