+ Reply to Thread
Results 1 to 2 of 2

Populating a drop-down based on checkboxes

  1. #1
    Registered User
    Join Date
    05-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    42

    Populating a drop-down based on checkboxes

    Hey folks,

    I am attempting to provide users a drop-down of values based only on boxes they have checked.

    The user has the ability to check up to 4 boxes (Zones 1-4) and I am attempting to provide a list in a drop-down format on 50 cells that will only allow them to select a value from the boxes they have checked.

    For example:
    If the user selects Zone 1, Zone 2 and Zone 4, they should only have the ability to select 1, 2, or 4 from the drop-down list.


    My initial thought was using data validation, a named range and passing an array based on the checkboxes but I am not sure if I can add and remove values from an array in this manner.

    Any thoughts? Is this even possible?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Populating a drop-down based on checkboxes

    If you wanted to use DV with Named Range then I would suggest you create a 2nd contiguous listing that contains the selected values (to a max of 4) and use this as source.

    I suspect a sample file would "kill a few birds with one stone" ... for ex.:

    Q: are your checkboxes Forms or Active X ?

    Q: are you using Linked Cells to store the Boolean status of the Checkboxes ?

    Q: are the checkboxes adjacent to cells containing the "Zone" info. or is this info. contained within the label of the checkbox itself ?

    Q: are you using VBA in any way ? (in general rather than specific to this issue)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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