Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
OK. I give up. I have a combobox where the data is sorted and bound to an
excel range like: Rows(RowStart% & ":" & RowEnd%).Sort Key1:=Range(Column$ & RowStart%), Header:=xlYes .RowSource = Column$ & RowStart% & ":" & Column$ & RowEnd% .ListRows = IIf(.ListCount 20, 20, .ListCount) .DropDown The above occurs on the selection of the combobox via ._Enter. When the user selects an item, I record the selection and clear <unsuccessfully the combobox . I have tried .clear, but that only is supposed to be used with .Additem. And the system tells me so; it crashes with an unspecified error. I've tried .RowSource = "", but apparently, when you do that, .ListIndex becomes invalid and causes another error, and if I try to set it to -1, another error yet. What is the proper method for clearing a listbox bound to a spreadsheet range? Is there something I have missed? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
listbox B conditional of input in Listbox A | Excel Discussion (Misc queries) | |||
Multicolumn Listbox and ordinary listbox | Excel Programming | |||
listbox.value not equal to listbox.list(listbox.listindex,0) | Excel Programming | |||
Is refreshing listbox rowsource in listbox click event possible? | Excel Programming | |||
Sorting ListBox results or transposing ListBox values to other cells for sorting | Excel Programming |