Consulting

Results 1 to 13 of 13

Thread: Solved: 6 dependant drop down boxes

  1. #1

    Solved: 6 dependant drop down boxes

    Hi there,
    I have a sheet with 6 columns and x number of rows, each row makes up a unique sequence (Sequences are horizontal).
    Some of the cells are the same as other rows but the end result is always unique.
    What im trying to do is use dependant drop down boxes on another sheet to act as validation.
    The idea is you use the 6 dependant drop down boxes, so that the end result is one of the unique sequences from the other sheet.
    Ive been down the route of named ranges but it doesnt seem to cater for what I am attempting to do.
    Im capable with both excel and vba but not sure how to address this.
    Thanks

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Thanks for the quick reply.
    Ive already tried this approach (using that very site) but it doesnt work because the 2nd etc columns are not lists as such. In my case it would be like each cell on each row of each column would need to be a seperate list (named range) which just wouldnt be feasible?

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    I can't see what the end result should be. Can you post a sample workbook with expected outcome?
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Maybe this will give you a steer
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    I have attached a sample spreadsheet with a few notes to explain my self a bit better.

    Thank you

  7. #7
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Does Fedex give rise to 3 options in Column C, or do you combine A & B to give Asda/Tesco drivers. Similarly for Product/vehicle and Destination columns.
    Your example is a bit sparse on detail, and there are many ways to waste time getting it wrong.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  8. #8
    Bascially the 7 rows are unqiue sequences.
    The idea is it will only let you pick from the 6 dropdown boxes so that it matches ones of those sequences.

    You should always pick the pick from the first column first, say you pick Sainsburys, the 2nd drop down box should only show Van4fire and Delivery2u. If you picked Van4hire it should only show John and Fred since they are the only possible in the options in one of the sequences listed. From there if you picked John, you would now only see pencils then Fiesta then France because this would be the only possible sequence it could match.

    Hope this helps to explain further?

  9. #9
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    OK I follow that.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  10. #10
    VBAX Regular
    Joined
    Aug 2004
    Posts
    11
    Location
    If it helps steer you into a solution, what you are talking about is called Cascading ComboBoxes. I was working on something similar a few months ago without success, hope you find your solution.

  11. #11
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    try this.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  12. #12
    Thank you mdmackillop that worked exactly as I was required!
    And thanks to everyone else who contributed.

    Would it be possible to do a quick run through each sub just to fully understand your method please?

    Thanks again!

  13. #13
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    The code runs repeated Advanced Filters. Unhide the hidden columns on the Data sheet. Set up your window to show both sheets
    Step through the code and you can see the actions.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •