Hi everyone.
I'm trying to concatenate a few cells but seem to be missing the mark with my code.
Can you show me where I went wrong.
Thank you
I'm trying to concatenate a few cells but seem to be missing the mark with my code.
Can you show me where I went wrong.
Thank you
Code:
Dim counter As Long
Dim b As Range
Dim e As Range
Dim g As Range
Range("E1").Select 'Set the range for the loop
Selection.End(xlDown).Select
Set b = Range("B1:" & Selection.Address) 'destination
Set e = Range("E1:" & Selection.Address) 'name Part1
Set g = Range("F1:" & Selection.Address) 'name Part2
For n = 1 To e.Rows.Count 'This is where you set the column to sort on
b.Cells(n, 1) = e.Cells(n, 1) &" " &g.Cells(n, 1) ' <--Trying to get this to concatenate
Next n