+ Reply to Thread
Results 1 to 2 of 2

Macro to Check only one box

Hybrid View

  1. #1
    Registered User
    Join Date
    05-17-2006
    Location
    Battle Creek, MI USA
    Posts
    11

    Macro to Check only one box

    Hello friends,
    I am a newbie to this forum. So this is my first thread
    Here is what I was looking for.
    I have two check box in cell J6 and K6. These check boxes are linked to cell J6 and K6. I want the user to check only one box at any given point i.e. either J6 or K6 (i.e. Value of J6 is "TRUE" and K6 is "Flase" or vice viceversa). If the user checks both the boxes then value of both the cells J6 and K6 will become true, which needs to be avoided. I was looking for a macro which will get activated automatically when the user checks any of the boxes, and will give a error message to "SELECT ONLY ONE BOX" when the value for both the cells J6 and K6 is same.
    Refer attached sheet for proper explanation...........
    Thank you
    Attached Files Attached Files

  2. #2
    Tom Ogilvy
    Guest

    RE: Macro to Check only one box

    Optionbuttons support this concept without needing to use any code. Suggest
    you use two optionbuttons from the control toolbox toolbar rather than two
    checkboxes.

    --
    Regards,
    Tom Ogilvy


    "nik_gujarathi" wrote:

    >
    > Hello friends,
    > I am a newbie to this forum. So this is my first thread
    > Here is what I was looking for.
    > I have two check box in cell J6 and K6. These check boxes are linked to
    > cell J6 and K6. I want the user to check only one box at any given
    > point i.e. either J6 or K6 (i.e. Value of J6 is "TRUE" and K6 is
    > "Flase" or vice viceversa). If the user checks both the boxes then
    > value of both the cells J6 and K6 will become true, *which needs to be
    > avoided*. I was looking for a macro which will get activated
    > automatically when the user checks any of the boxes, and will give a
    > error message to "SELECT ONLY ONE BOX" when the value for both the
    > cells J6 and K6 is same.
    > Refer attached sheet for proper explanation...........
    > Thank you
    >
    >
    > +-------------------------------------------------------------------+
    > |Filename: Check_Box_Problem.doc |
    > |Download: http://www.excelforum.com/attachment.php?postid=4775 |
    > +-------------------------------------------------------------------+
    >
    > --
    > nik_gujarathi
    > ------------------------------------------------------------------------
    > nik_gujarathi's Profile: http://www.excelforum.com/member.php...o&userid=34522
    > View this thread: http://www.excelforum.com/showthread...hreadid=542872
    >
    >


+ 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