Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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


+-------------------------------------------------------------------+
|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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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
check box macro Monique Excel Discussion (Misc queries) 1 November 10th 09 05:22 AM
Macro for check box [email protected] Excel Discussion (Misc queries) 2 December 30th 08 08:59 PM
Check Box Macro bjh Excel Discussion (Misc queries) 5 June 24th 08 09:46 PM
check contain value with macro Nadia25 Excel Programming 1 September 27th 05 04:30 AM
Check Box Macro Jason Watts Excel Programming 3 January 7th 04 02:46 AM


All times are GMT +1. The time now is 05:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"