Disclaimer: Please forgive my EXTREME newbie-ness. I dont even know how to use this forum, and i MINIMAL knowledge of Excel. I hunt and peck away through videos, etc to accomplish tasks, slowly:
This is my variation on the "ListthemAll" code. My project is a little different but your code works to a point. I changed some numbers to fit my project . The problem is , I cant have repeating numbers, and i dont know how to adjust it for that. Can you help?
Sub ListThemAll()
TC = 1
TR = 1
Ctr = 1
MaxRows = Rows.Count
EndCell = 7059052
Application.ScreenUpdating = False
For a = 1 To 29
For b = 1 To 6
For c = 2 To 14
For d = 3 To 17
For e = 4 To 21
For f = 5 To 37
Application.StatusBar = Ctr & " on way to " & EndCell
Cells(TR, TC).Value = a & "-" & b & "-" & c & "-" & d & "-" & e & "-" & f
Ctr = Ctr + 1
If Ctr Mod 25000 = 0 Then
Cells(TR - 20, TC).Select
Application.ScreenUpdating = True
ThisWorkbook.Save
Application.ScreenUpdating = False
End If
TR = TR + 1
If TR = MaxRows Then
TR = 1
TC = TC + 1
End If
Next f
Next e
Next d
Next c
Next b
Next a
Application.StatusBar = False
Application.ScreenUpdating = True
End Sub
BTW...the FIRST occurence of the repeated number HAS to stay, and IN the place it occured. Which is always the FIRST slot
This is my variation on the "ListthemAll" code. My project is a little different but your code works to a point. I changed some numbers to fit my project . The problem is , I cant have repeating numbers, and i dont know how to adjust it for that. Can you help?
Sub ListThemAll()
TC = 1
TR = 1
Ctr = 1
MaxRows = Rows.Count
EndCell = 7059052
Application.ScreenUpdating = False
For a = 1 To 29
For b = 1 To 6
For c = 2 To 14
For d = 3 To 17
For e = 4 To 21
For f = 5 To 37
Application.StatusBar = Ctr & " on way to " & EndCell
Cells(TR, TC).Value = a & "-" & b & "-" & c & "-" & d & "-" & e & "-" & f
Ctr = Ctr + 1
If Ctr Mod 25000 = 0 Then
Cells(TR - 20, TC).Select
Application.ScreenUpdating = True
ThisWorkbook.Save
Application.ScreenUpdating = False
End If
TR = TR + 1
If TR = MaxRows Then
TR = 1
TC = TC + 1
End If
Next f
Next e
Next d
Next c
Next b
Next a
Application.StatusBar = False
Application.ScreenUpdating = True
End Sub
BTW...the FIRST occurence of the repeated number HAS to stay, and IN the place it occured. Which is always the FIRST slot
Last edited by a moderator: