I have a similar case
I want to do exactly what this routine accomplishes except that I would like to delete:
4 numbers in a sequence
5 numbers in a sequence
6 numbers in a sequence
All other sequences and none-sequences remain.
Further explanation: I have rows of 6 numbers (Similar to Lotto sequence)
1,2,3,4,5,6 (Will be deleted because 5 (4 or more) numbers in sequence)
1,2,3,4,5,7 (Will be deleted because 5 numbers are in sequence)
1,2,3,4,6,8 (will be deleted because 4 numbers are in sequence)
1,2,3,8,14,20 (will not be deleted because only 3 numbers are in sequence)
3,8,9,16,20,22 (will not be deleted because no number in sequence)
1,2,4,15,16, 20 (will not be deleted because only 2 numbers are in sequence)
Please help