+ Reply to Thread
Results 1 to 3 of 3

Select/Deselect multiple items from data validation drop down

Hybrid View

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    54

    Select/Deselect multiple items from data validation drop down

    Hello,

    I have some VBA that allows me to select multiple items from a data validation list and separate the items with ", " (comma followed by a space). The code also allows you to deselect an item from the list by clicking on the item a second time. The problem arises when you select an item that is embedded within another item. For example, if I have "Daniel" selected from my list and proceed to select "Dan" the result will be "iel". I would like these to be exclusive items where the result would show "Daniel, Dan". I've attached an example file for review.

    Thanks so much for any help.
    Attached Files Attached Files

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Select/Deselect multiple items from data validation drop down

    In you sample, it works as you want it to. I was able to list every name in A1 with a comma between each name. When I selected the n, it removed all the n's from the names.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    01-09-2012
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Select/Deselect multiple items from data validation drop down

    That's what I don't want it to do. I would like each term to be exclusive.

    For example, if in cell A1 you currently have selected "Daniel, Aaron, Ron" and proceeded to select "n" you would get the following: "Daiel, AaroRo". I want every term in the drop down list to be mutually exclusive. The result I desire would return: "Daniel, Aaron, Ron, n". Then if you selected "n" again from the drop down the result would return back to "Daniel, Aaron, Ron".

    Hope this makes sense.

+ 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. Data Validation - Selecting multiple items with ability to deselect items
    By dsklein85 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-12-2016, 09:02 AM
  2. omit menu items via data validation for multiple selections and multiple menus when select
    By themattyp503 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2014, 12:16 AM
  3. [SOLVED] Select Multiple Items From Validation List
    By hugebeatz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2014, 04:01 AM
  4. Replies: 0
    Last Post: 04-22-2014, 11:03 PM
  5. Select Multiple Items From Drop Down List
    By Niclal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2014, 01:43 PM
  6. Select Multiple Items in Drop-Down Box
    By NdnInformer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-05-2013, 04:19 PM
  7. Excel Data Validation - Select Multiple Items - Need to Apply Macro to Multiple Rows
    By kristynroll in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2012, 07:44 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