bloubul
Member
I have the following macro, it gives combo's numeric, but I want the combo's to be in "RANDOM ORDER".
Will any one please help me.
Option Explicit
Dim A As Integer, B As Integer, C As Integer, D As Integer, E As Integer
Dim n As Long
Sub List_Comb559()
Range("A1").Select
Application.ScreenUpdating = False
n = 0
For A = 1 To 55
For B = A + 1 To 56
For C = B + 1 To 57
For D = C + 1 To 58
For E = D + 1 To 59
n = n + 1
If n = 65001 Then
n = 1
ActiveCell.Offset(-65000, 1).Select
Application.ScreenUpdating = True
Application.ScreenUpdating = False
End If
ActiveCell.Value = A & "-" & B & "-" & C & "-" & D & "-" & E
ActiveCell.Offset(1, 0).Select
Next E
Next D
Next C
Next B
Next A
Application.ScreenUpdating = True
End Sub
I thank You
BlouBul
Will any one please help me.
Option Explicit
Dim A As Integer, B As Integer, C As Integer, D As Integer, E As Integer
Dim n As Long
Sub List_Comb559()
Range("A1").Select
Application.ScreenUpdating = False
n = 0
For A = 1 To 55
For B = A + 1 To 56
For C = B + 1 To 57
For D = C + 1 To 58
For E = D + 1 To 59
n = n + 1
If n = 65001 Then
n = 1
ActiveCell.Offset(-65000, 1).Select
Application.ScreenUpdating = True
Application.ScreenUpdating = False
End If
ActiveCell.Value = A & "-" & B & "-" & C & "-" & D & "-" & E
ActiveCell.Offset(1, 0).Select
Next E
Next D
Next C
Next B
Next A
Application.ScreenUpdating = True
End Sub
I thank You
BlouBul