VBABeginner1
New Member
- Joined
- Dec 6, 2014
- Messages
- 31
I am currently getting an error when I run this on the "Next i" section. If I change it to "Next" and remove the "i", then I don't get an error, but it loops the "i", but not the "i"
I am trying to concatenate 2 cells from one sheet and move them into another on a separate sheet
I am trying to concatenate 2 cells from one sheet and move them into another on a separate sheet
Code:
Sub Concate()
Dim i As Long
Dim c As Long
Dim final As Long
Dim WS1 As Worksheet
Dim WS2 As Worksheet
Set WS1 = Worksheets("BEFORE AND AFTER")
Set WS2 = Worksheets("COMPARE")
For i = 3 To 10003
For c = 4 To 10004
WS2.Cells(i, 226) = WS1.Cells(c, 194) & " " & WS1.Cells(c, 195)
Next i
Next c
End Sub