+ Reply to Thread
Results 1 to 5 of 5

Multiple Checkboxes to Create a List

Hybrid View

  1. #1
    Registered User
    Join Date
    07-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Multiple Checkboxes to Create a List

    Hi All,

    My first post-

    I've been searching all over for a solution to my following quandary. Here's my situation...

    I have a sheet with a list of all cities in MN. I need to be able to choose 5 of these cities (there are a few hundred to choose from). I want those 5 chosen cities to stand out from the hundreds that are not chosen. My initial thought was to create a checkbox for each city and have those checked cities fill another column when the value=true.

    Then I saw an older post that changed the properties of the cell so when clicked it changed color. I thought that was a great option, but every time the cell is clicked it flips from blank to color and I need the cell to remain unchanged when clicked (although double clicking might be a good alternative).

    I'm totally open to a solution and I need to do this same exercise for ND. I'm fairly competent in excel, but not as advanced as most of you it seems. I have bare basic knowledge of macros and almost none in regards to VBA. That said I take direction EXTREMELY well and can comprehend information. I look forward to getting any instruction!

    Thanks,
    Rob

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Multiple Checkboxes to Create a List

    Are you sure you want to emphasis in place or would something like the attached work for you, A2:A6 has data validation dropdown menus. The rest is done with named ranges and VLOOKUP.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Multiple Checkboxes to Create a List

    That is another option, but I need to have every MN city available and I think there are over 800 of them. That's a bit much for a drop-down list I think.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Multiple Checkboxes to Create a List

    Good point. Okay, I'm not a big fan of Checkboxes. Look at this file. Be sure to enable content so VBA works. Double clicking on column A places a check mark (marrett "a") in the cell. Conditional formatting turns the row red with white font.
    To view code, right click on the sheet tab and "view code"
    Would this work for you?
    Another option would be combining the two; do the checkmark and then have formulas separate those values from the rest.
    Any questions?

    Edit: I added a file Cities2a.xlsm which does both checks and highlights then fills in a subtable. You can hide column H if you wanted to.
    Attached Files Attached Files
    Last edited by ChemistB; 07-25-2012 at 03:33 PM. Reason: Added another option

  5. #5
    Registered User
    Join Date
    07-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Multiple Checkboxes to Create a List

    This is a great option! Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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