Hello,
I have a spreadsheet with a list of names in column A (Cell A1 has the title "Names", and names are in cell A2 onwards).
This list can change in length, and people's names sometimes have multiple entries.
Cell H1 has the word "Winners"
What I would like please is a macro that will:
1) Prompt the user to define how many names should be picked, and a cancel/do nothing option
2) Pick a random name from the list in column A
3) Paste this name into cell H2. If a fancy pop up with the name in colour and in bold can be shown at this point (with a continue button), then that would be awesome, but not essential, although this may not be possible in Excel
4) Once this name has been picked, all instances of this name in column A are highlighted in red
5) Steps 2-4 are repeated for as many times as specified in step 1, however - if a name is picked, then it cannot then be picked again in any subsequent iterations. The second name picked would go into cell H3, then H4 etc.
6) Once all iterations have been completed, a message box pops up saying "congratulations to all our winners"
7) Once all iterations have completed, a subsequent press off the button starts again from step 1 and column H (H2 downwards) is cleared.
I hope this is simple for someone with a much vaster knowledge of macros - many many thanks indeed!
I have a spreadsheet with a list of names in column A (Cell A1 has the title "Names", and names are in cell A2 onwards).
This list can change in length, and people's names sometimes have multiple entries.
Cell H1 has the word "Winners"
What I would like please is a macro that will:
1) Prompt the user to define how many names should be picked, and a cancel/do nothing option
2) Pick a random name from the list in column A
3) Paste this name into cell H2. If a fancy pop up with the name in colour and in bold can be shown at this point (with a continue button), then that would be awesome, but not essential, although this may not be possible in Excel
4) Once this name has been picked, all instances of this name in column A are highlighted in red
5) Steps 2-4 are repeated for as many times as specified in step 1, however - if a name is picked, then it cannot then be picked again in any subsequent iterations. The second name picked would go into cell H3, then H4 etc.
6) Once all iterations have been completed, a message box pops up saying "congratulations to all our winners"
7) Once all iterations have completed, a subsequent press off the button starts again from step 1 and column H (H2 downwards) is cleared.
I hope this is simple for someone with a much vaster knowledge of macros - many many thanks indeed!