+ Reply to Thread
Results 1 to 5 of 5

VBA Data Validation - Multiple selections, each column has its own validation list

  1. #1
    Registered User
    Join Date
    06-15-2015
    Location
    Hanoi
    MS-Off Ver
    2010
    Posts
    13

    Question VBA Data Validation - Multiple selections, each column has its own validation list

    Hi all,

    I wanted to set up a VBA to set data validation for my daily work. But I'm too new to VBA so I couldn't write a more complicated one to meet my rather complicated need. I could manage to create multiple choice validation VBA but couldn't fulfill other requirements. Could you kindly help?

    My issue:
    - A workbook containing 02 sheets. "Sheet 1" is in fixed format with 6 columns. Columns B, D, F require to apply data validation. All columns require multiple selections and each selection is separated by a ";". Each column has its own corresponding validation list listed in 2nd Sheet - "Validation Lists". Data in Validation Lists columns is not fixed, additional criteria may be added later.

    - Column C will be auto-populated based on what is selected in column B; Column E is based on column D. Values for Column C and E are also listed in Validation Lists.

    - And I would like to enable this VBA for similar workbooks with the same template format in the future.

    Please find the sample template in attachment.

    Thank you very much for any help or advice
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: VBA Data Validation - Multiple selections, each column has its own validation list

    In sheet1 just select 1 cell in Column B, @ the row you want to insert choosen criteria

    userform appears, here you choose the items from 3 listboxes and ending with button insert


    Kind regards
    Leo
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-15-2015
    Location
    Hanoi
    MS-Off Ver
    2010
    Posts
    13

    Re: VBA Data Validation - Multiple selections, each column has its own validation list

    @ LeoTaxi: Wow, your version is truly amazing. So advanced and creative!

    I would like to ask for a small favor if you could make the corresponding data after selecting the items in Category and Condition column non-duplicated? For example, in column B, if Living Room and Bedroom ( which both belong to Category A), Category A will only appear once instead of twice?

    Thank you so much!

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: VBA Data Validation - Multiple selections, each column has its own validation list

    No duplicates in this

    Cheers
    Leo
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-15-2015
    Location
    Hanoi
    MS-Off Ver
    2010
    Posts
    13

    Re: VBA Data Validation - Multiple selections, each column has its own validation list

    Thank you so much! The code works perfectly!

    Best Regards,

+ 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. [SOLVED] Multiple selections using data validation (sumifs)
    By scruz9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-24-2015, 04:10 PM
  2. Replies: 10
    Last Post: 07-06-2015, 01:51 PM
  3. Multiple selections from data validation list
    By astasinim in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2015, 11:20 AM
  4. [SOLVED] Data validation list - country names are selections but 2 digit codes need to be result
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-07-2014, 11:28 AM
  5. Filter Multiple Selections Data Validation
    By yisfromer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-25-2013, 12:23 PM
  6. Multiple selections from data validation macro
    By strud in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2013, 05:09 AM
  7. Replies: 4
    Last Post: 03-13-2013, 07:52 AM

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