Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Moving name from 1 listbox to another
Hello All - I have 2 ListBoxes on a UserForm. The 1st is populated with a
list of names based on a choice from a ComboBox. How can I "move" a name from the 1st box (TeamListBox) to the 2nd box (DropsListBox - RowSource DROPS) when it is clicked? The following will make the clicked name appear in the 2nd box, but how do I get the name to disappear from the 1st box ? Private Sub TeamListBox_Click() Worksheets("TeamData").Select Range("INDEX(DROPS,1,1)").Select Dim DropCounter As Integer For DropCounter = 1 To 10 If ActiveCell.Value = "" Then ActiveCell.Value = TeamListBox.Value Exit Sub Else ActiveCell.Offset(1, 0).Select End If Next DropCounter End Sub Thanks for any ideas. -- Jim T |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Moving Mutli-Column Multiple-Selected Listbox items up or down | Excel Discussion (Misc queries) | |||
VBA: Creating listbox similar to the one in Pivot table (Listbox+Checkbox) | Excel Programming | |||
Moving cell values from sheet2 to sheet1 using UserForms and ListBox | Excel Programming | |||
Listbox--moving items up or down | Excel Programming | |||
listbox.value not equal to listbox.list(listbox.listindex,0) | Excel Programming |