Working on a code to replace specific text with other text but it is clearing all cells even if its not in the list.
How would I tell it to leave the cells alone if the and values in place if the change doesn't apply?
For example - If I am telling it to replace HORSE with COW, it is also removing the DOG.
The particular part of the code I believe is the culprit and that I am unable to figure out is -
[TABLE="width: 326"]
For Each c In rngR
If Not c.Value = "" Then curVal = c.Value
With rng
.Replace curVal, c.Offset(0, 2).Value, xlWhole, , True
[/TABLE]