+ Reply to Thread
Results 1 to 12 of 12

EXCEL VBA - Multi Selection DATA VALIDATION

  1. #1
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    EXCEL VBA - Multi Selection DATA VALIDATION

    Hi Expert,

    I have a multiselection data validation in particular Cell. ex: in cell A1

    drop down list contains - A, B, C, D

    with multiselection the cell value shows - A; B; C; D;

    I want to restrict user from entering any value which is not available in the list - ex: E;

    REQUIREMENT:
    user can copy paste A; B; C; D; OR B; C; D; from any other cell to A1 but if it contains like E; which is not in the drop down list, it should show message ex - A; B; E;.

    Thanks
    MG

  2. #2
    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,929

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    It would probably be of more help if you showed what code you have so far, and maybe even share a sample workbook?
    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

  3. #3
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    Its a huge file hence cannot share.
    Also the records in the cell i.e. A; B; C; are inserted with some lengthy process with multiple codes (not specific).

    Request you to treat the given example above as a input.

    Please help me with this.

    HOW IT SHOULD WORK?
    it should split each records from the cell separately i.e. A; B; C; should be treated separately and then we should check whether "A" is from the list OR "B" is from the list or "C" is from the list.

    if there are any other Characters such as "E" it should show message and undo the copy paste.

    Thanks
    MG

  4. #4
    Registered User
    Join Date
    12-05-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    -----

    still waiting for help

    -----

  5. #5
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    Here is a single selection, you need to changes by yourself.
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    Hi Expert,

    Please find attached file with all the required details.

    Expecting early reply as this might be the easy things for experts.

    Same details are below for quick view:

    Attachment 551991

    Thanks
    MG
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    ''

    waiting for help !!!

    ''

  8. #8
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    try:
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    Thanks for the reply
    Sorry But How To Use

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    12-28-2012
    Location
    Mumbai - India
    MS-Off Ver
    Excel
    Posts
    145

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    I have values apart from dates . that was just an example. but it seems that you have treated the code only for months column.

    i have other records also like country name, employee name, etc.

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: EXCEL VBA - Multi Selection DATA VALIDATION

    This thread should receive no more replies until you have anwered the question put in what appears to be your duplicate thread here....

    https://www.excelforum.com/excel-pro...very-slow.html
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Multi-select from data validation isn't working with auto-assigning data validation
    By iPenguin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2017, 12:37 PM
  2. Multi Data Validation Selection Macro
    By RagingBokky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2017, 12:50 AM
  3. Replies: 3
    Last Post: 06-04-2015, 02:27 PM
  4. Excel VBA multiple selection drop down data validation list
    By garoe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2014, 05:20 PM
  5. Replies: 4
    Last Post: 05-09-2013, 03:56 AM
  6. [SOLVED] Formula Based on Multi-Level Data Validation Selection
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-07-2013, 08:34 PM
  7. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 PM

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