Load player names into FORM automatically

Nitehawkhp

New Member
Joined
Dec 2, 2016
Messages
37
Hello again,

I have a FORM that is used to select players/teams to play in a tournament, and then macros will generate brackets for the competition.

On the FORM there are radio buttons before the 'Yes' and 'no' words. They are used to select who will be playing during that round of competition.

I have been unsuccessful at developing a macro that will automatically populate the player names on the form.
Therefore, I have added a button on the form, shown below, called LOAD PLAYERS.
Can someone help me with the code to load the player names in to the column below the word 'Everyone' of the form below?
The player names to load on the FORM are on the worksheet named ‘PLAYERS’ and reside at location of B2 – B17.

Maximum 16 Players
Load Players
Will Play
Player

Yes
no
Everyone

Yes
no


Yes
no


Yes
no


Yes
no


Yes
no


Yes
no


Yes
no


Yes
no


Yes
no


Yes
no


Yes
no


Yes
no


Yes
no


yes
no


Yes
no


yes
no



<tbody>
</tbody>

Thank you for any help you can provide me.

Rod
 

jjasmith4

New Member
Joined
Aug 22, 2018
Messages
48
You don't need code. Select the 16 cells underneath "Everyone", then type "=PLAYERS!B2:B17" and hit Ctrl-Shift-Enter, not just Enter. That's an array formula, and it will look like this "{=PLAYERS!B2:B17}", with curly braces.
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
75,277
By 'FORM' do you mean a userform?

If you do then you should look into using a listbox for the players.

That could be easily populated from the list and it could be set up so there is a checkbox next to each player.

That checkbox could be used to indicate whether or not a player is selected to play.
 

Forum statistics

Threads
1,077,649
Messages
5,335,473
Members
399,017
Latest member
npatel917

Some videos you may like

This Week's Hot Topics

Top