Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Building a new userform
I am in the process of building a userform to make changes to golf teams.
Right now I have a combobox (TeamsComboBox) that contains a list of 50 golf team names and a blank listbox (TeamListBox) below it. When the user clicks on a name in the combobox I want that team's golfers to show up in the listbox for editting. The names in the list of teams are in A2:A51. A2 is named TEAM1, A3 is named TEAM2, etc. Each team has its own named array that contains their 10 golfers (i.e. TEAM5GOLFERS). I plan to use the cell name of the team selected to concatenate into "TEAM5"&"GOLFERS" to be able to bring the team's golfers (i.e. TEAM5GOLFERS) into the listbox for editing. Am I making any sense? Thanks for any suggestions. -- Jim T |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Building a new userform
Private Sub TeamsComboBox_Click()
With Me .TeamsListBox.RowSource = Worksheets("Sheet1") _ .Range(.TeamsComboBox.Value & "Golfers").Address(, , , True) End With End Sub -- --- HTH Bob (change the xxxx to gmail if mailing direct) "Jim Tibbetts" wrote in message ... I am in the process of building a userform to make changes to golf teams. Right now I have a combobox (TeamsComboBox) that contains a list of 50 golf team names and a blank listbox (TeamListBox) below it. When the user clicks on a name in the combobox I want that team's golfers to show up in the listbox for editting. The names in the list of teams are in A2:A51. A2 is named TEAM1, A3 is named TEAM2, etc. Each team has its own named array that contains their 10 golfers (i.e. TEAM5GOLFERS). I plan to use the cell name of the team selected to concatenate into "TEAM5"&"GOLFERS" to be able to bring the team's golfers (i.e. TEAM5GOLFERS) into the listbox for editing. Am I making any sense? Thanks for any suggestions. -- Jim T |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Building a new userform
That'll work. Thanks Bob.
-- Jim T "Bob Phillips" wrote: Private Sub TeamsComboBox_Click() With Me .TeamsListBox.RowSource = Worksheets("Sheet1") _ .Range(.TeamsComboBox.Value & "Golfers").Address(, , , True) End With End Sub -- --- HTH Bob (change the xxxx to gmail if mailing direct) "Jim Tibbetts" wrote in message ... I am in the process of building a userform to make changes to golf teams. Right now I have a combobox (TeamsComboBox) that contains a list of 50 golf team names and a blank listbox (TeamListBox) below it. When the user clicks on a name in the combobox I want that team's golfers to show up in the listbox for editting. The names in the list of teams are in A2:A51. A2 is named TEAM1, A3 is named TEAM2, etc. Each team has its own named array that contains their 10 golfers (i.e. TEAM5GOLFERS). I plan to use the cell name of the team selected to concatenate into "TEAM5"&"GOLFERS" to be able to bring the team's golfers (i.e. TEAM5GOLFERS) into the listbox for editing. Am I making any sense? Thanks for any suggestions. -- Jim T |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Building an XLL from C / C++ | Excel Programming | |||
Building a TOC | Excel Discussion (Misc queries) | |||
Information building? | Excel Programming | |||
building xsl for an xml | Excel Programming | |||
Building xll | Excel Programming |