lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I am trying to concatenate the first 10 cells in A, and B columns and put them in C. So I did this program which did not work. Any help would be very much apprecaited.
Sub concat()
Dim i As Integer, j As Integer
For i = 1 To 10
For j = 1 To 10
Cells(i, j + 2).Value = Cells(i, j).Value & Cells(i, j + 1).Value
Next i
Next j
End Sub
I am trying to concatenate the first 10 cells in A, and B columns and put them in C. So I did this program which did not work. Any help would be very much apprecaited.
Sub concat()
Dim i As Integer, j As Integer
For i = 1 To 10
For j = 1 To 10
Cells(i, j + 2).Value = Cells(i, j).Value & Cells(i, j + 1).Value
Next i
Next j
End Sub