This code will look at how many rows there are in columns A and B and act accordingly. If you want to change he 'for' cycles, feel free to do so. The way I use it, it goes from "x to y", so if you want to change the start or the end, change those parts.
For i = 1 To 26
'you can change 1 or 26 to whatever you want (well, almost :P)
Sub Combine()
'declare variables
Dim i As Integer
Dim j As Integer
Dim k As Integer
'fill combinations to column C
For i = 1 To Cells(Rows.Count, "A").End(xlUp).Row 'go from 1 to number of rows in A
For j = 1 To Cells(Rows.Count, "B").End(xlUp).Row 'go from 1 to number of rows in B
Cells(k + 1, "C") = Cells(i, "A") & Cells(j, "B")
k = k + 1
Next j
Next i
End Sub
I'm going to sleep now so don't stay up waiting for me to reply.
Bookmarks