India Broadband Forum


Problem: Yes/No check box in MS Excel

This is a discussion on Problem: Yes/No check box in MS Excel within the Windows forums, part of the Operating Systems category; Kindly help me with the code for the following in MS Excel. I have 2 check boxes (Yes & No) ...

Go Back   India Broadband Forum > Computers > Operating Systems > Windows

India Broadband Forum


                      

Reply

 

LinkBack Thread Tools Display Modes
Old 02-04-09, 10:44 AM   #1
Aadhavan is Coming
 
Rameshjeee's Avatar
 
Join Date: Aug 2008
Location: Leaving Chennai
Age: 26
Posts: 3,075
Rep Power: 10
Rameshjeee is a name known to allRameshjeee is a name known to allRameshjeee is a name known to allRameshjeee is a name known to allRameshjeee is a name known to allRameshjeee is a name known to all
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.
Rameshjeee is offline   Reply With Quote
Old 02-05-09, 09:08 PM   #2
saurav_k
Guest
 
Posts: n/a
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.
  Reply With Quote
Old 02-05-09, 09:10 PM   #3
Aadhavan is Coming
 
Rameshjeee's Avatar
 
Join Date: Aug 2008
Location: Leaving Chennai
Age: 26
Posts: 3,075
Rep Power: 10
Rameshjeee is a name known to allRameshjeee is a name known to allRameshjeee is a name known to allRameshjeee is a name known to allRameshjeee is a name known to allRameshjeee is a name known to all
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.
Rameshjeee is offline   Reply With Quote
Reply

Tags
box, check, excel, problem, yes or no

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Excel Games.... Dragon Videogaming News and Reviews 55 11-11-09 04:19 PM
Excel Workshop smoothvibes Windows 1 12-19-08 04:31 AM
Add overs in Excel krishnakrkc Computer hardware and software tips and tricks 0 11-25-08 07:57 AM
Problem relating Usage Check of BSNL BB Service vikasahal BSNL broadband 2 08-23-08 10:04 PM
variety problem with usage check syam4you BSNL broadband 8 05-27-08 05:49 PM


All times are GMT +5.5. The time now is 03:20 AM.


India Broadband Forum