+ Reply to Thread
Results 1 to 6 of 6

Search listbox through textbox

  1. #1
    Registered User
    Join Date
    01-29-2019
    Location
    Roermond
    MS-Off Ver
    365
    Posts
    25

    Search listbox through textbox

    Dear Forum,

    I'm trying to get textbox1 to filter all columns from listbox1.
    And, I'd like the listbox to refresh when I mistype (rollback)

    I simply populate the listbox as shown below
    Please Login or Register  to view this content.
    Based on this, how can I get the textbox to work for me as desired?

    Regards, Ruud.

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: Search listbox through textbox

    Type something in the textbox
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-29-2019
    Location
    Roermond
    MS-Off Ver
    365
    Posts
    25

    Re: Search listbox through textbox

    Thank you JEC.,

    That works great.
    However, listbox1 is situated on a userform, as is textbox1.

    Should of said this in advance. Sorry 'bout that.
    Can you help again?

    Regards, Ruud.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Search listbox through textbox

    Same principle.
    Attached Files Attached Files
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Registered User
    Join Date
    01-29-2019
    Location
    Roermond
    MS-Off Ver
    365
    Posts
    25

    Re: Search listbox through textbox

    Thank you both JEC and Bakerman2,

    Got an error 70 "Permission denied".
    Resolved that by removing ".rowsource"

    Now it works like a charm.

    Regards, Ruud.

    Please Login or Register  to view this content.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Search listbox through textbox

    Glad to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] Filter Listbox or Search Listbox using Textbox
    By crowmagnus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2020, 08:34 AM
  2. Search files on Listbox with a Textbox
    By yinkajewole in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-03-2019, 02:46 PM
  3. Search within a ListBox as you type in a TextBox
    By shreeparas in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 02-20-2019, 10:10 AM
  4. textbox search for listbox with an array
    By Wornout8 in forum Excel General
    Replies: 3
    Last Post: 10-09-2017, 05:16 PM
  5. [SOLVED] Search within a ListBox as you type in a TextBox
    By Boechat in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-16-2016, 05:39 PM
  6. Search listbox from textbox
    By zplugger in forum Excel General
    Replies: 12
    Last Post: 08-23-2012, 08:11 PM
  7. [SOLVED] Textbox to search listbox
    By zplugger in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2012, 08:25 AM

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