Hi,
I dont know how solve this problem:
I have 4 comboboxes cbx_thing0...cbx_thing3 . All have same items : "01","02","03","04","05"
Displaying all 4 comboboxes on the form. I need to change the list of items for each combo, so that it does not include items that are selected on other combos.
Example:
cbx_thing0 - selected "01" + in list "01" and "03"
cbx_thing1 - selected "04" + in list "03" and "04"
cbx_thing2 - selected "02" + in list "02" and "03"
cbx_thing3 - selected "05" + in list "03" and "05"
Combos must change everytime when is SelectionChanged. I dont have any idea how made it.
This code from me doesnt work.
Sub napln_kombo
For i = 0 To cisla
meno = "cbxcislo" & i
Control(meno,ComboBox).Clear
For j = 0 To 8
Control(meno,ComboBox).Add(nazvycisel(j).name)
Next j
Next i
End Sub
Sub kombo_SelectionChanged (Index, Value)
napln_kombo
For i = 0 To cisla
meno1 = "cbxcislo" & i
For j = 0 To cisla
meno2 = "cbxcislo" & j
If i <> j Then
Control(meno1,ComboBox).Remove(Control(meno2,ComboBox).Text)
End If
Next j
Next i
End Sub
Sorry for my english.