Hi, not case sensitive, only 1x per cell, and it is a stringIs this a case-sensitive search? That is, should the string 'test' also be replaced with the adjacent value?
Will the string 'Test' ever occur more than once in a single cell?
Can you confirm that you are looking for the string 'Test' as you stated not the word 'Test'? That is the red text here would get replaced "Testing proved easy"
Sub Replace_String()
Dim a As Variant
Dim i As Long
With Selection
a = .Resize(, 2).Value
For i = 1 To UBound(a)
a(i, 1) = Replace(a(i, 1), "test", a(i, 2), 1, -1, 1)
Next i
.Value = a
End With
End Sub