Sub hsv()
Dim sn, arr, j As Long, jj As Long, jjj As Long, jjjj As Long, n As Long
Dim num1 As Long, num2 As Long, num3 As Long, num4 As Long
sn = Application.Transpose(Array(1, 2, 3, 4, 5, 6, 7))
ReDim arr(Application.Combin(UBound(sn), 4) * 3, 3)
'eerste 35 wedstrijden
For j = 1 To UBound(sn) - 3
num1 = sn(j, 1)
For jj = j + 1 To UBound(sn) - 2
num2 = sn(jj, 1)
For jjj = jj + 1 To UBound(sn) - 1
num3 = sn(jjj, 1)
For jjjj = jjj + 1 To UBound(sn)
num4 = sn(jjjj, 1)
arr(n, 0) = num1
arr(n, 1) = num2
arr(n, 2) = num3
arr(n, 3) = num4
n = n + 1
Next jjjj
Next jjj
Next jj
Next j
'2e serie van 35 wedstrijden
For j = 1 To UBound(sn) - 3
num1 = sn(j, 1)
For jj = j + 1 To UBound(sn) - 2
num2 = sn(jj, 1)
For jjj = jj + 1 To UBound(sn) - 1
num3 = sn(jjj, 1)
For jjjj = jjj + 1 To UBound(sn)
num4 = sn(jjjj, 1)
arr(n, 0) = num1
arr(n, 1) = num3
arr(n, 2) = num2
arr(n, 3) = num4
n = n + 1
Next jjjj
Next jjj
Next jj
Next j
'3e serie van 35 wedstrijden
For j = 1 To UBound(sn) - 3
num1 = sn(j, 1)
For jj = j + 1 To UBound(sn) - 2
num2 = sn(jj, 1)
For jjj = jj + 1 To UBound(sn) - 1
num3 = sn(jjj, 1)
For jjjj = jjj + 1 To UBound(sn)
num4 = sn(jjjj, 1)
arr(n, 0) = num1
arr(n, 1) = num4
arr(n, 2) = num3
arr(n, 3) = num2
n = n + 1
Next jjjj
Next jjj
Next jj
Next j
Cells(2, 10).Resize(n, 4) = arr
Cells(2, 10).CurrentRegion.Sort [j2], , [k2], , , [l2], , 1
End Sub