+ Reply to Thread
Results 1 to 2 of 2

How to filtering in a userform

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    Houston tx
    MS-Off Ver
    Excel 2010
    Posts
    24

    How to filtering in a userform

    I have a userform which uses a list box with multiple columns, what would be the best way to filter the rows, based on the selection of another column.

    any advice is helpful.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: How to filtering in a userform

    You can't 'filter' a listbox. You can only put the items you want in it.

    Ways to accomplish this.

    1. You can loop through the listbox, looking for the items you want, store them in a array, then replace the entries in the listbox.

    2. Use Range.Find and search for the items on the worksheet, adding them as a match is found.

    3. Use cascading comboboxes. Choose a unique item from Column1, then display only those matching items in a second combobox, etc until you narrow the selection down.
    David
    (*) Reputation points appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1