I've been trying to come up with a macro that runs through a column and replaces the last word in a cell.
Dim LR As Long, i As Long
Application.ScreenUpdating = False
LR = Range("A" & Rows.Count).End(xlUp).row
For i = 1 To LR
With Range("A" & i)
If Right(.Value, 4) = "word" Then .Value = Right(.Value, Len(.Value) + 10) & " different word"
End With
Next i
I have this code that tacks the replacement onto the end, but I don't understand it well enough to get it to replace the original.
Any input appreciated.