Kenya649
The big question that springs to mind when I read posts requesting code is whether that person has done some work trying to solve the problem them self. To that end supplying some pseudo code which clearly and logically sets out in everyday language what you are trying to do and where you are stuck is normally a requirement for programming assistance (especially from me!). The point is that you need to indicate that you are not asking others to do work for you that you should be doing yourself. If you can't indicate some competence in coding in Excel then what can follow is a never ending stream of questions each of which may indicate a lack of understanding and an unwillingness to do much yourself. (Have I seen an example of this recently?)
The first question that I ask myself is why you have supplied a set of lines where the integers are not in numerical order as is normal. This is an indication that you don't know how to code such a simple routine and raises questions about whether you would understand code that is more complex.
The next question is whether there is any sense in the question you ask:
"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. ... and I would want to identify a set of six numbers and each line must have at least one of the six identified numbers."
A suggestion is that instead of using the general term numbers use lines or blocks and integers.
So, do you want a set of six lines?
The set of 23 lines with six integers per line (Pick 6) you supplied uses 45 integers from a Pool of 49. A set of 6 lines with unique integers can be done easily 1 2 3 4 5 6 ... etc using 36 of the 45 integers you have used in your set. Unfortunately, (maybe) it is impossible to fit 36 integers into 1 line of 6 integers. I assume you know this so there must be some other way of setting out your objective that makes sense.
Now, GillesD is the resident Excel responder at this site and I don't want to steal his thunder but I doubt whether even he can make sense of your post.
Regards
Colin Fairbrother