I have developed this code in VBA, but I am encountering a limitation of replacements for column C.
The code has worked perfectly most of the time, but I have encountered problems with cells in column C containing many characters and I only get replacement in part of the content. Any suggestions as to why this is happening?
Thank you very much and best regards!
The code has worked perfectly most of the time, but I have encountered problems with cells in column C containing many characters and I only get replacement in part of the content. Any suggestions as to why this is happening?
VBA Code:
Public Sub Macro4()
Dim lastRow As Long
Dim thisRow As Long
lastRow = Cells(Rows.Count, "A").End(xlUp).Row
For thisRow = 2 To lastRow
Range("C:C").Replace What:=Cells(thisRow, "A"), Replacement:=Cells(thisRow, "B"), LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
Next thisRow
End Sub
Thank you very much and best regards!