Hello,
The code below doesn't seem to advance to the next cell. Can anynone help me?
Thank you!
The code below doesn't seem to advance to the next cell. Can anynone help me?
Code:
Sub NewConcatenate()
Dim i As Long
Dim FinalRow As Long
Dim NextRow As Long
Dim rCell As Range
FinalRow = Cells(Rows.Count, ActiveCell.Column - 1).End(xlUp).Row
Set rCell = ActiveCell
NextRow = rCell.Row
For i = 2 To FinalRow
If rCell.Value <> "" Then
rCell.Offset(0, 1).FormulaR1C1 = "=CONCATENATE(RC[-2],"", "",RC[-1])"
NextRow = NextRow + 1
End If
Next i
End Sub
Thank you!