Consulting

Results 1 to 5 of 5

Thread: dependent dropdown list

  1. #1
    VBAX Newbie
    Joined
    Sep 2021
    Posts
    4
    Location

    dependent dropdown list

    I have this sheet named "DATA". In this sheet, in column G is the data that I want to consolidate in drop-down lists. These are subdivided by Countries, for example France contains the Cities from row 2 to 6 (Lyon,Paris,Bordeaux,Toulouse,Toulon) so that would be a consolidated dropdown list, so on with the following countries (there are quite a few countries with their respective cities in their respective columns).

    IMG 1: Check the link: https://ibb.co/LZst89F


    What I need is for the macro to create those dropdown lists in the next "List" sheet in column E (City column) based on what I put in the column D (Country column). For example, if I write Denmark in column D, in the next column E, same row, the macro would place the drop-down list that corresponds to it according to the DATA sheet (Copenhagen,Odense,Aalborg). I would need this to happen for any Country I put in column D based on the Data sheet.

    IMG 2: Check the link: https://ibb.co/sv2sP12

  2. #2

  3. #3
    VBAX Newbie
    Joined
    Sep 2021
    Posts
    4
    Location
    It seems to me that the only way to execute this task is through a macro since the amount of data that I have in the countries can be infinite.

  4. #4
    VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,273
    Location
    Large, maybe, but not infinite... Good luck trying to implement and maintain that in code.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  5. #5
    Administrator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,302
    Location
    Maybe have a play with something like the attached?
    Attached Files Attached Files
    Click here for a guide on how to add code tags
    Click here for a guide on how to mark a thread as solved
    Click here for a guide on how to upload a file with your post

    Excel 365, Version 2408, Build 17928.20080

Posting Permissions

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