Results 1 to 3 of 3

Thread: Problem: Yes/No check box in MS Excel

  1. #1
    Good to be Back
    Join Date
    Aug 2008
    Age
    28
    Liked
    0 times
    Posts
    3,010

    Default Problem: Yes/No check box in MS Excel

    Kindly help me with the code for the following in MS Excel.

    I have 2 check boxes (Yes & No) in a excel sheet.

    This is my requirement

    Intiallly both the check boxes are unchecked.

    If I select Yes check box, it should be checked.
    Now if I select No check box, No check box should be selected & Yes checked must be unchecked.
    Now again if I select Yes check box, Yes check box should be selected & No checked must be unchecked.

    When I check Yes check box, No should be unchecked.
    When I check No check box, Yes should be unchecked.
    Collection of my useful Threads - All in One

  2. #2
    saurav_k
    Guest

    Default

    @ rameshjee

    the yes/no option you want to implement in your excel file, should be implemented with option buttons always. you will find option button tool just below the check box tool in the Froms toolbar. the default behaviour of option buttons is this - no, matter how many option buttons you have on your sheet, only one of them can be selected at a time. as soon as you select an option button all other option buttoons will get unchecked. check boxes are used when you need the user to select multiple options from a given list. i hope this helps you. i am a visual basic programmer (vba) and suggesting this to you as ms excel is also based on the same language(vba).

    go to view on the menubar>toolbars>forms

    the form toolbar should appear. it will look like this:



    you can use yes/no option buttons like this:



    as soon as you select the yes button, the no button will get unchecked and vice-versa.

    this is the way to do it. option buttons are meant for this. if you still want the check boxes to behave your way, tell me, i will work that out for you.

  3. #3
    Good to be Back
    Join Date
    Aug 2008
    Age
    28
    Liked
    0 times
    Posts
    3,010

    Default

    Thanks saurav,I found the solution yesterday..Yup..we need to use the combo option.I would post it in a thread sometime this weekend.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How To Check BSNL Broadband Account Usage?
    By Preeti_20 in forum BSNL broadband
    Replies: 26
    Last Post: 11-27-11, 06:15 PM
  2. Replies: 0
    Last Post: 02-13-10, 02:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •