Using Excel 2010
Hello,
I got a list of 21 salesmen in the column E in the cells E6:E26 I need a VBA which can at the end of selection should highlight selected one random salesman name at a time and give a message for example “salesman 09 is chosen”
Resume:
1- Once macro button is pressed start highlighting the first name of cell “E6” and then move to downside through the end of the list. (repeat the process from top to bottom again and again till the random selection is done within 4 to 5 rounds, like a roulette wheel)
2- After the random selection of the salesman is finish selection could be highlight.
3- After highlighted eventually give a message of highlighted salesman for example “salesman 09 is chosen”
4- When the macro button is pressed again, the 'roulette' highlighting process starts again, and eventually another selected name would be highlighted with their message.
5- I really needed is a slowdown code which won't just be linear random selection it must be more mathematical while choosing the names.
6- Is this possible?
Thank you all.
Regards,
Moti
Hello,
I got a list of 21 salesmen in the column E in the cells E6:E26 I need a VBA which can at the end of selection should highlight selected one random salesman name at a time and give a message for example “salesman 09 is chosen”
Resume:
1- Once macro button is pressed start highlighting the first name of cell “E6” and then move to downside through the end of the list. (repeat the process from top to bottom again and again till the random selection is done within 4 to 5 rounds, like a roulette wheel)
2- After the random selection of the salesman is finish selection could be highlight.
3- After highlighted eventually give a message of highlighted salesman for example “salesman 09 is chosen”
4- When the macro button is pressed again, the 'roulette' highlighting process starts again, and eventually another selected name would be highlighted with their message.
5- I really needed is a slowdown code which won't just be linear random selection it must be more mathematical while choosing the names.
6- Is this possible?
Excel Question.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | |||||||||||
2 | |||||||||||
3 | Random | ||||||||||
4 | Selection | ||||||||||
5 | |||||||||||
6 | Salesman 01 | ||||||||||
7 | Salesman 02 | ||||||||||
8 | Salesman 03 | ||||||||||
9 | Salesman 04 | ||||||||||
10 | Salesman 05 | ||||||||||
11 | Salesman 06 | ||||||||||
12 | Salesman 07 | ||||||||||
13 | Salesman 08 | ||||||||||
14 | Salesman 09 | ||||||||||
15 | Salesman 10 | ||||||||||
16 | Salesman 11 | ||||||||||
17 | Salesman 12 | ||||||||||
18 | Salesman 13 | ||||||||||
19 | Salesman 14 | ||||||||||
20 | Salesman 15 | ||||||||||
21 | Salesman 16 | ||||||||||
22 | Salesman 17 | ||||||||||
23 | Salesman 18 | ||||||||||
24 | Salesman 19 | ||||||||||
25 | Salesman 20 | ||||||||||
26 | Salesman 21 | ||||||||||
27 | |||||||||||
28 | |||||||||||
29 | |||||||||||
30 | |||||||||||
Sheet2 |
Thank you all.
Regards,
Moti