Consulting

Results 1 to 3 of 3

Thread: two way dependent dropdowns.. possible?

  1. #1

    two way dependent dropdowns.. possible?

    Hi there,

    I'm a newbie when it comes to VBA or Macros and not sure what function I'd even need to look at to do what I need. So I'm hoping someone can help me on here

    I'm trying to create a simple user form, where the user can either choose a system or a motor from two separate dropdowns, BUT both of these dropdowns are dependent on the other.

    For example... On sheet1 - System dropdown is in B9 and Motor is in C9
    If you select a system from B9, a list of applicable motors appears in the dropdown in C9
    Or if you select a motor from C9 first, then a list of applicable systems appears in dropdown B9

    I've attached my form as it is at the moment, where the dropdowns work only one way... C9 is dependent on the selection in B9.

    I'm sure I'll need to use scripting but have no idea where to start ...
    Attached Files Attached Files

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,872
    See DVs in cells B9:C10
    In the Distinct sheet, column B I've used TRANSPOSE which makes it easier to copy down the data validation cells on Sheet1 and the formulae on the Distinct sheet; you don't have to do this.
    When you've got values in a given row for both columns B & C the validation lists will be mutually compatible; the only way to see a full list again is to delete the other value in the same row.

    It is a shame we can't easily use table structured references directly in DV.
    Attached Files Attached Files
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3

    Thank you

    Ah that's amazing thank you, I didn't think to do it like that, much easier than how I was going about it

    Quote Originally Posted by p45cal View Post
    See DVs in cells B9:C10
    In the Distinct sheet, column B I've used TRANSPOSE which makes it easier to copy down the data validation cells on Sheet1 and the formulae on the Distinct sheet; you don't have to do this.
    When you've got values in a given row for both columns B & C the validation lists will be mutually compatible; the only way to see a full list again is to delete the other value in the same row.

    It is a shame we can't easily use table structured references directly in DV.

Tags for this Thread

Posting Permissions

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