I found this macro online (from 10 years ago) that solved a problem I was having in regards to sorting golfers into random teams where no one plays with the same person over four days. Each digit in the 4 digit number this macro returns is a unique player, so for example 1234 would refer to first golfer from Group A, 2 would refer to second golfer from Group B etc. This macro is meant for 24 golfer (A1 to A6, B1 to B6, C1 to C6 and D1 to D6) over four days of golf.
I am hoping someone could help me, I would like to be able to change the macro so instead of it being for 24 golfers over four days the macro would look for the number entered, for example, in Sheet 1, cell A1 to get the number of golfers (always multiples of 4) and get the number of rounds from Sheet 1, cell A2 (three to eight rounds).
Basically I want this macro to to perform the same function, but allow me to enter a couple of variables.
Any help would be appreciated.
Moderator edit:
Code including a lot of HTML removed.
Please re-post by pasting into TEXT tab.