+ Reply to Thread
Results 1 to 3 of 3

Filter UserForm Multicolumn ListBox with TextBox/ComboBox

  1. #1
    Registered User
    Join Date
    11-29-2013
    Location
    Ottawa
    MS-Off Ver
    Excel 2010
    Posts
    7

    Filter UserForm Multicolumn ListBox with TextBox/ComboBox

    Hi Everyone,

    I've been looking for an answer to this specific scenario and I haven't found it yet. If it exists, I'm sorry for wasting your time and would request the link to that answer please.

    If not, here we go.

    I'm creating a listbox in a userform that's using a rowsource from a sheet to list the multicolumn list.

    This list is very big and I want to be able to filter through it using a combobox to specify which column to filter by and a textbox to specify the keywords to filter by.

    I've found different iterations of these in pieces but not as a whole and I haven't been able to put it together.

    Here is the code I have so far:

    Please Login or Register  to view this content.
    I get a "Unspecified Error" (80004005) When I get to the ".RemoveItem i" line which I've read is because I'm using RowSource to populate the list.

    Is there an easier what to achieve all this?

    Thank you for your help and let me know if you need more information.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Filter UserForm Multicolumn ListBox with TextBox/ComboBox

    If you use RowSource to populate a listbox you can't remove items from it.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Filter UserForm Multicolumn ListBox with TextBox/ComboBox

    Instead of using a rowsource you'd have to populate the listbox via code (for example in the userform initialization) if you want to remove items from it later.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sort for multicolumn listbox in userform (5-columns)
    By d.sanchez in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-11-2017, 05:30 AM
  2. Replies: 0
    Last Post: 08-18-2015, 04:13 PM
  3. Using ComboBox on Userform to filter ListBox
    By burger160 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2014, 05:03 PM
  4. Loading MultiColumn Combobox in a Userform
    By anandvh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2014, 10:47 AM
  5. [SOLVED] excel vba filter values to listbox from combobox and save edit values in textbox
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2013, 08:42 AM

Tags for this Thread

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