Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
G'day there once again, One & All,
I'm currently trying to finish off a userform which has a multicolumn ListBox that has a dynamic range as a rowsource. I've managed to get most of it working the way I want it too, my columns display as intended, and sort themselves according to selections made via optionbuttons. I even have a sort option for ascending & descending order. What I want to do is give my users the option of displaying data that only belongs to a user defined category. Eg, click the "OSA" option button and the listbox will display only those employees who are paid Operational Shift Allowance, etc. I tried several variations of Autofilter before looking on the net & finding that filtering the list has no effect (something I'd already seen for myself). I then had a few goes at using combinations of range.rows.hidden, and another method I can't recall at the moment, but which had a criteria of xlcelltype = visible. Having no success there, I tried copying the visible data from my range, and then pasting it to a different location. The problem then was that I couldn't (and still can't) reset the ListBox's rowsource range. It gives me a 1004 error when I try to point it at the copied/pasted data. I've not tried the .additem method because I've set the rowsource earlier in the code and "Help" tells me that I can't use it when the rowsource is assigned. I've no doubt this has occurred previously and there has to be a workaround, but I can't find it. Google searches with various criteria bring me plenty of hits, but nothing that I've found useful so far. Can any one please offer advice, or a site or reference that might explain house it's done? Thank you once again, -- Ken McLennan Qld, Australia |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Listbox rowsource on Userform | Excel Discussion (Misc queries) | |||
???Help??? Userform.Listbox.rowsource = ??? | Excel Discussion (Misc queries) | |||
RowSource in ListBox | Excel Programming | |||
Is refreshing listbox rowsource in listbox click event possible? | Excel Programming | |||
listbox rowsource | Excel Programming |