Results 1 to 3 of 3

Thread: Load player names into FORM automatically
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member Nitehawkhp's Avatar
    Join Date
    Dec 2016
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Load player names into FORM automatically

    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

    Thank you for any help you can provide me.

    Rod

  2. #2
    New Member
    Join Date
    Aug 2018
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Load player names into FORM automatically

    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.

  3. #3
    Board Regular Norie's Avatar
    Join Date
    Apr 2004
    Location
    Stirling, Scotland
    Posts
    75,154
    Post Thanks / Like
    Mentioned
    62 Post(s)
    Tagged
    6 Thread(s)

    Default Re: Load player names into FORM automatically

    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.
    If posting code please use code tags.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •