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.



<tbody>
[TD="colspan: 3, align: center"]Maximum 16 Players
[/TD]
[TD="align: center"]Load Players
[/TD]

[TD="colspan: 2, align: center"]Will Play
[/TD]
[TD="align: center"]Player
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]Everyone
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]Yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]

[TD="align: center"]yes
[/TD]
[TD="align: center"]no
[/TD]
[TD="align: center"]
[/TD]

</tbody>

Thank you for any help you can provide me.

Rod
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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