How do I write an Excel VBA code to pick a set of six numbers that are in the following lines and every line must have at least one number of my set of six numbers.
e.g the following are the lines
6 13 16 31 34 47
7 14 17 32 35 48
9 16 19 34 37 1
10 17 20 35 38 2
13 20 23 38 41 5
18 25 28 43 46 10
19 26 29 44 47 11
21 28 31 46 49 13
23 30 33 48 2 15
26 33 36 2 5 18
27 34 37 3 6 19
28 35 38 4 7 20
30 37 40 6 9 22
31 38 41 7 10 23
34 41 44 10 13 26
36 43 46 12 15 28
37 44 47 13 16 29
41 48 2 17 20 33
44 2 5 20 23 36
46 4 7 22 25 38
48 6 9 24 27 40
49 7 10 25 28 41
3 10 13 28 31 44
and I would want to identify a set of six numbers and each line must have at least one of the six identified numbers.
Please assist to identify the set(s) of six numbers using a VBA code
Thanks
e.g the following are the lines
6 13 16 31 34 47
7 14 17 32 35 48
9 16 19 34 37 1
10 17 20 35 38 2
13 20 23 38 41 5
18 25 28 43 46 10
19 26 29 44 47 11
21 28 31 46 49 13
23 30 33 48 2 15
26 33 36 2 5 18
27 34 37 3 6 19
28 35 38 4 7 20
30 37 40 6 9 22
31 38 41 7 10 23
34 41 44 10 13 26
36 43 46 12 15 28
37 44 47 13 16 29
41 48 2 17 20 33
44 2 5 20 23 36
46 4 7 22 25 38
48 6 9 24 27 40
49 7 10 25 28 41
3 10 13 28 31 44
and I would want to identify a set of six numbers and each line must have at least one of the six identified numbers.
Please assist to identify the set(s) of six numbers using a VBA code
Thanks