+ Reply to Thread
Results 1 to 7 of 7

Mulitple CombBox lookup

  1. #1
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Mulitple CombBox lookup

    Attached is a sample spreadsheet.

    Combobox1 Allows you to choose a room. In this example you can choose "Kitchen" or "Bathroom"

    I Chose "Kitchen"

    ComboBoxes 2 & 3 will then populate with the available products based on CombBox1.

    I chose "Sink" for CB2 & "Oven" for CB3.

    Under each product you can select the "Attributes". I select "Double" for both CB6 (Attribute for "Sink") and CB10 (Attribute for "Oven")

    Here is where the issue pops up. Both the "Sink" & "Oven" have attribute "Double" however "Double" for "Sink" mean something different then "Double" for "Oven".

    How do I rewrite the code (or lookup chart??) in CB7 & CB10 so they "look" at CB2 & CB6 and CB3 & CB10 and only returns attributes that match to the corresponding product/attribute(s).
    Attached Files Attached Files

  2. #2
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Re: Mulitple CombBox lookup

    Bump Bump....

  3. #3
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Re: Mulitple CombBox lookup

    I found a solution (not a good one) but a solution.

    If I incorporate textboxes then the following code works:

    Please Login or Register  to view this content.
    This is going to be pretty tedious to maintain as lists grow.

    I'm not hung up on using text-boxes but if there is a way to "minimize" the code that has to be typed, i would greatly appreciate knowing what it is!

    Thanks!

  4. #4
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Re: Mulitple CombBox lookup

    So while the last code posted works, it still doesn't solve the issue of having a 3rd drop-down which provides choices based on the first two.

    Can it be the this is the end all be all stumper?

  5. #5
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Re: Mulitple CombBox lookup

    Bumpity Bump Bump

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Mulitple CombBox lookup

    i tried to check your file, but combo1 and 2 dont show any values. however, i did notice that the ranges for those 2 include both categories. maybe you could change that so you have 2 different ranges, so that sinks have their own lookup and ovens have a different 1?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Re: Mulitple CombBox lookup

    I just checked the sample sheet provided and they have the values.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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