+ Reply to Thread
Results 1 to 4 of 4

Multiple comboboxs making unique selections from same data

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    NZ
    MS-Off Ver
    Excel 2010
    Posts
    3

    Multiple comboboxs making unique selections from same data

    Hi,
    I have been trying to get a set of userform comboboxs pulling from the same (or similar) data source to only show selections that have not already been chosen, independent of the order that the comboboxs are selected.
    e.g. In the case of the common data being "Red", "Green", "Yellow", "Blue".
    If I select "Green" with box1 then it is not available in the lists for boxs 2-4.

    I have tried searching a few forums but have not found a solution yet.
    I am not fussed how comboboxs get their initial data (I first used selecting the row source)

    The below example code works only in a certain order.
    I think the errors occur because when I remove an item from the listindex it reorganises the selection so if I choose index 0 item and it is removed from the list then on the next combobox item 1 now becomes item 0 and if that is selected it has a with the fist combobox already having selected that even if it is a different value.

    Any help appreciated.


    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Multiple comboboxs making unique selections from same data

    I'll take a stab with this. I only did it for the first two combo boxes, but it will give you an idea. The functionality is managed by reading and writing to an excel table which also populates the initial dropdown boxes.

    I would do the other two, but I'm taking off for the long weekend.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    04-29-2013
    Location
    NZ
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Multiple comboboxs making unique selections from same data

    Thanks for the help dflak.
    I had a look and that and tried to get my head around how it worked
    One thing I thought I saw and confirmed was that since a combo box with a already selected value is not cleared, then as you add items to the boxes you get double ups being applied to those boxes if you were to go back to them.
    By nesting the combobox value check when redefining the tables this counters that issue.
    But then the second selection can still be selected by the first combo box if you go back to it.

  4. #4
    Registered User
    Join Date
    04-29-2013
    Location
    NZ
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Multiple comboboxs making unique selections from same data

    Are there any other ways that one list of data can be used for multiple combo boxes with no double ups of chosen data?

+ 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. Replies: 10
    Last Post: 07-06-2015, 01:51 PM
  2. Making unique data
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2014, 02:29 PM
  3. Using 3 ComboBoxs to filter the unique key. Please help!
    By thanglieu2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-10-2012, 12:37 AM
  4. List Box Selections Outputting Multiple Selections with One Click
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-21-2011, 12:27 PM
  5. Multiple selections from a pick list - only unique selections (no repeats) ?
    By opsayo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2011, 06:25 PM
  6. Initialize error with multiple Comboboxs & lists
    By JamesT1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2008, 01:53 AM
  7. [SOLVED] Making multiple selections from Excel drop down lists
    By Andyroo in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-16-2006, 10:25 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