vba excel combination and search for matches

Eager_For_Knowledge

New Member
Joined
Sep 2, 2014
Messages
5
I need help in creating an excel VBA that will do the following:1.Sheet1 generate the combinations of 6 numbers, each number range from 1 - 39. The numbers generated should be placed in ColumnA down to row 1048576 and if the combination is not finished continue to ColumnB down and repeat the process to ColumnC onwards until all the combinations are all listed. The numbers in the combination should be delimited by a space like 23 5 1 12 9 10
2.Then if sheet2 ColumnA isNot empty search sheet1 against sheet2 ColumnA to see if any sequence matches in sheet1. if match then highlight cell in sheet1.
Note: Sheet2 will have a set of numbers manually inputted by user in each row in ColumnA. These numbers will also be delimited by a space like 23 5 1 12 9 10
Expert help needed
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top