+ Reply to Thread
Results 1 to 5 of 5

Searching Columns with multi column Combobox

  1. #1
    Registered User
    Join Date
    09-24-2013
    Location
    United States
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    70

    Searching Columns with multi column Combobox

    I'm not sure what I need to fix. What it is I have a huge list/table. Column I is vendors, Column B is a location. Some vendors are multiple locations but the same Vendor name. How can I locate these vendors while having a two column Combobox for searching? This is coming off a userform.

    Please Login or Register  to view this content.
    This worked when I had a single column i was using.

    Please Login or Register  to view this content.
    I need to be able to find the vendor with name and location since there is multiple repeat vendors
    Last edited by LightHeart7; 01-06-2015 at 02:01 PM.

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

    Re: Searching Columns with multi column Combobox

    I fill both comboboxes with a unique list of the respective columns. Then, in the combobox change event, I use Range.Find to locate the first combobox value. Then I use offset to look to the second column to see if it matches combobox2. If it does, then I have a match.

    Then you need to decide what to do with that find.

    to find the vendor
    And then do what? If all you need is to identify them in some way, then use auto-filter. I usually display the results in a listbox, along with other columns. But you don't describe what the descrimator will be.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    09-24-2013
    Location
    United States
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    70

    Re: Searching Columns with multi column Combobox

    Sorry, i'm trying to identify the row for the Userform. So i may have
    Tester 1 - New York
    Tester 2 - New York
    Tester 3 - Arizona
    Tester 1 - California

    Well I want to active that row for Tester 1 from California. So that I can pull its information. Not the Tester 1 from New York.

    Does that help any?

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

    Re: Searching Columns with multi column Combobox

    I want to active that row ...
    Then, perform the steps I've indicated, then in the combobox2_Change event use the true If-Then statement to activate the row.

    If you could upload a sample worksheet WITH SOME DATA, I can illustrate.
    Last edited by Tinbendr; 01-06-2015 at 04:35 PM.

  5. #5
    Registered User
    Join Date
    09-24-2013
    Location
    United States
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    70

    Re: Searching Columns with multi column Combobox

    I only had one combo box but having two will be easier. I'll have to make a new forum for this few new questions but thank you. You did help me realize its going to be better to have two then just a multi-column combobox. Easier and more simple in the long run.

+ 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. Multi column ComboBox - How to Display the results of second column?
    By nreyes2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2014, 04:28 PM
  2. how to ignore blank in multi-column combobox
    By dlh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-22-2010, 08:49 PM
  3. Multi-Column ComboBox
    By babcock1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2009, 02:45 PM
  4. multi column combobox
    By nh1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2006, 03:21 AM
  5. [SOLVED] Multi Column ComboBox
    By Steve Roberts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2005, 09:06 PM

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