+ Reply to Thread
Results 1 to 5 of 5

Auto-check checkboxes based on cell value

  1. #1
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Auto-check checkboxes based on cell value

    Hello,
    Need some help on the checkboxes.

    Has three checked boxes. Box 1 , 2, 3

    If A1 = "Yes", Checkbox 1 will be checked.
    If A1 = "No", Check box 2 will ne checked.
    If A1 = 3, Check box 3 will be checked.


    Thanks
    Last edited by Rocky2013; 02-24-2015 at 03:25 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Auto-check checkboxes based on cell value

    Link each checkbox to a different cell. In the cells corresponding to those checkboxes put the following formulas:

    Checkbox 1: =A1="Yes"
    Checkbox 2: =A1="No"
    Checkbox 3: =A1=3

    The way you link the checkboxes depends on whether they are ActiveX or Forms. For ActiveX, go to Design Mode, right click on the checkbox, and in Properties, fill in LinkedCell with the cell address. For Forms, right click, select Format Control, select the Control tab, and use the "Cell link" box to select a cell.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Auto-check checkboxes based on cell value

    Hello,
    Thanks very much for the help; it works without use of VBA.

    I learn something new today, I did not know it is possible.
    I use form control.

    Thanks

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Auto-check checkboxes based on cell value

    By the way you can put the checkboxes right on top of the linked cells to hide those formulas.

  5. #5
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Auto-check checkboxes based on cell value

    OK. I already use your help for my excel file already. This eliminates to manually checking the box.

    Thanks

+ 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. Excel Checkboxes to automatically check if there is anything in a cell
    By andy.quach3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2014, 01:27 PM
  2. Using < and > to compare date values, check checkboxes based on outcome
    By puffo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2014, 08:29 AM
  3. Macro to automatically check or uncheck checkboxes based on a linked cell
    By lmshow in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 03:31 AM
  4. Print Sheets based on checkboxes in UserForm, Checkboxes also control another macro
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 03-05-2013, 11:12 AM
  5. [SOLVED] How do I check/uncheck ten or odd Checkboxes by click on one check
    By Ken Vo in forum Excel General
    Replies: 5
    Last Post: 01-04-2006, 07:15 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