+ Reply to Thread
Results 1 to 6 of 6

Filter Listbox or Search Listbox using Textbox

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    Wichita, Kansas
    MS-Off Ver
    Excel 2010, 2016, 2021-22
    Posts
    87

    Filter Listbox or Search Listbox using Textbox

    Is it possible to search or filter a listbox in a userform using a textbox? I've tried everything I could think of and couldn't get any results.
    I've attached a sample of what I am dealing with.

    Any help or pointers will be greatly appreciated!!!
    Attached Files Attached Files

  2. #2
    Forum Contributor Dante Amor's Avatar
    Join Date
    07-24-2020
    Location
    MEXICO
    MS-Off Ver
    Excel 2013
    Posts
    212

    Re: Filter Listbox or Search Listbox using Textbox

    You didn't comment on which column to search. The following code searches all the columns of the listbox:


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-12-2012
    Location
    Wichita, Kansas
    MS-Off Ver
    Excel 2010, 2016, 2021-22
    Posts
    87

    Re: Filter Listbox or Search Listbox using Textbox

    Hey, That actually works out pretty well!!
    Thank you!

  4. #4
    Forum Contributor Dante Amor's Avatar
    Join Date
    07-24-2020
    Location
    MEXICO
    MS-Off Ver
    Excel 2013
    Posts
    212

    Re: Filter Listbox or Search Listbox using Textbox

    I'm glad to help you. Thanks for the feedback.

  5. #5
    Registered User
    Join Date
    06-12-2012
    Location
    Wichita, Kansas
    MS-Off Ver
    Excel 2010, 2016, 2021-22
    Posts
    87

    Re: Filter Listbox or Search Listbox using Textbox

    Maybe you could help me out again. I added the code to the actual sheet (It's identical to the one I uploaded) and now its giving me an error "Object Required" and it's highlighting the row in the code
    Please Login or Register  to view this content.
    .
    Is it something I did wrong?

  6. #6
    Registered User
    Join Date
    06-12-2012
    Location
    Wichita, Kansas
    MS-Off Ver
    Excel 2010, 2016, 2021-22
    Posts
    87

    Re: Filter Listbox or Search Listbox using Textbox

    Never mind, it was something I did wrong lol.

+ 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. Filter by 2 combobox in listbox according to textbox
    By alexis2020 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-05-2020, 11:32 PM
  2. [SOLVED] TextBox Listbox Filter Down Search Does Not Work
    By RoroBear in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2019, 07:38 PM
  3. Filter listbox by value in textbox on userform
    By rgwood in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2018, 03:45 PM
  4. Filter listbox with rowsource using Textbox
    By m0nk3yzaii in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2018, 08:38 PM
  5. Search listbox from textbox
    By zplugger in forum Excel General
    Replies: 12
    Last Post: 08-23-2012, 08:11 PM
  6. [SOLVED] Textbox to search listbox
    By zplugger in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2012, 08:25 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