+ Reply to Thread
Results 1 to 3 of 3

2 Column UserForm ListBox To be Filtered by either Column A or Column B TextBox entries

  1. #1
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,770

    2 Column UserForm ListBox To be Filtered by either Column A or Column B TextBox entries

    I currently have this code (see below and in the attached) for a UserForm with a TextBox, Listbox and two Command Buttons.
    When I start typing into the TextBox it'll start filtering the list in the ListBox.

    What I would like though is that the ListBox is populated with Column A and B (2 Column ListBox) and that I can use
    the TextBox for filtering by either Column A or Column B values typed into it.
    Thank you very much


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    13,029

    Re: 2 Column UserForm ListBox To be Filtered by either Column A or Column B TextBox entrie

    One option with a single column listbox: Check the list count after filtering on column B and, if zero filter, on column A
    Please Login or Register  to view this content.
    Last edited by protonLeah; 10-06-2015 at 06:59 PM.
    Ben Van Johnson

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,770

    Re: 2 Column UserForm ListBox To be Filtered by either Column A or Column B TextBox entrie

    Thank you very much Ben.
    I'll have a play with it and let you know.
    Regards.
    John

+ 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. Replies: 13
    Last Post: 05-11-2014, 06:51 PM
  2. [SOLVED] Displaying last 5 value of an excel column to a textbox or listbox
    By nathan0519 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2014, 02:27 AM
  3. [SOLVED] Is it possible to use textbox value from userform as a Row or Column Reference
    By Excel_Runner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2014, 03:23 AM
  4. 2 column listbox userform search
    By touchofknowledge in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-08-2011, 11:41 AM
  5. userform textbox that searches column b
    By iturnrocks in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-05-2008, 02:08 PM
  6. [SOLVED] Multi Column UserForm ListBox
    By Mik in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2006, 05:15 PM
  7. [SOLVED] How do I return the unique entries from a column to a listbox
    By Dave Mc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2005, 04:06 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