Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Linking check boxes so if one is true the other shows false

I have two "yes or no" check boxes but they are both linked to the same cell
so both read the same (checked or unchecked). Is there a way to reverse one
so that it indicates "checked" when the source cell is false so they will
work together? I tried going to design mode and selecting "group" but the
options were gray-scale so not available (don't know why). I tried using
option buttons but was limited on the number. Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Linking check boxes so if one is true the other shows false

So you only want one of the checkboxes selected at any time?

If yes, then it sounds like you should be using OptionButtons instead of
checkboxes. That's the way OptionButtons behave.

Carl wrote:

I have two "yes or no" check boxes but they are both linked to the same cell
so both read the same (checked or unchecked). Is there a way to reverse one
so that it indicates "checked" when the source cell is false so they will
work together? I tried going to design mode and selecting "group" but the
options were gray-scale so not available (don't know why). I tried using
option buttons but was limited on the number. Thanks in advance.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Linking check boxes so if one is true the other shows false

Thanks, for the great advice, Dave. I switched to Option Buttons and achieved
my goal but there is still one problem...I have several rows of Yes/No
answers and it looks very cluttered because I had to place a group box around
each set to make them independant. Is there a way to make the border of the
group box the same color as my worksheet background so as to be invisible?
Thanks again.

"Dave Peterson" wrote:

So you only want one of the checkboxes selected at any time?

If yes, then it sounds like you should be using OptionButtons instead of
checkboxes. That's the way OptionButtons behave.

Carl wrote:

I have two "yes or no" check boxes but they are both linked to the same cell
so both read the same (checked or unchecked). Is there a way to reverse one
so that it indicates "checked" when the source cell is false so they will
work together? I tried going to design mode and selecting "group" but the
options were gray-scale so not available (don't know why). I tried using
option buttons but was limited on the number. Thanks in advance.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Linking check boxes so if one is true the other shows false

Hit alt-f11 to get to the VBE
hit ctrl-g to see the immediate window
type this and hit enter:
ActiveSheet.GroupBoxes.Visible = False

If it blows up (it might if you have lots of these groupboxes), you can run a
macro:

option explicit
sub testme()
dim myGB as groupbox
for each myGB in activesheet.groupboxes
mygb.visible = false
next mygb
end sub

Remember how you did this, so you can fix things if you need to.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

If you ever need to do this in code, you may want to look at Debra Dalgleish's
site:
http://contextures.com/xlForm01.html



Carl wrote:

Thanks, for the great advice, Dave. I switched to Option Buttons and achieved
my goal but there is still one problem...I have several rows of Yes/No
answers and it looks very cluttered because I had to place a group box around
each set to make them independant. Is there a way to make the border of the
group box the same color as my worksheet background so as to be invisible?
Thanks again.

"Dave Peterson" wrote:

So you only want one of the checkboxes selected at any time?

If yes, then it sounds like you should be using OptionButtons instead of
checkboxes. That's the way OptionButtons behave.

Carl wrote:

I have two "yes or no" check boxes but they are both linked to the same cell
so both read the same (checked or unchecked). Is there a way to reverse one
so that it indicates "checked" when the source cell is false so they will
work together? I tried going to design mode and selecting "group" but the
options were gray-scale so not available (don't know why). I tried using
option buttons but was limited on the number. Thanks in advance.


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Linking check boxes so if one is true the other shows false

Thanks again, Dave. Worked perfectly!

"Dave Peterson" wrote:

Hit alt-f11 to get to the VBE
hit ctrl-g to see the immediate window
type this and hit enter:
ActiveSheet.GroupBoxes.Visible = False

If it blows up (it might if you have lots of these groupboxes), you can run a
macro:

option explicit
sub testme()
dim myGB as groupbox
for each myGB in activesheet.groupboxes
mygb.visible = false
next mygb
end sub

Remember how you did this, so you can fix things if you need to.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

If you ever need to do this in code, you may want to look at Debra Dalgleish's
site:
http://contextures.com/xlForm01.html



Carl wrote:

Thanks, for the great advice, Dave. I switched to Option Buttons and achieved
my goal but there is still one problem...I have several rows of Yes/No
answers and it looks very cluttered because I had to place a group box around
each set to make them independant. Is there a way to make the border of the
group box the same color as my worksheet background so as to be invisible?
Thanks again.

"Dave Peterson" wrote:

So you only want one of the checkboxes selected at any time?

If yes, then it sounds like you should be using OptionButtons instead of
checkboxes. That's the way OptionButtons behave.

Carl wrote:

I have two "yes or no" check boxes but they are both linked to the same cell
so both read the same (checked or unchecked). Is there a way to reverse one
so that it indicates "checked" when the source cell is false so they will
work together? I tried going to design mode and selecting "group" but the
options were gray-scale so not available (don't know why). I tried using
option buttons but was limited on the number. Thanks in advance.

--

Dave Peterson


--

Dave Peterson

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
Removing Rows for Printing Frick Excel Worksheet Functions 20 March 10th 06 10:53 PM
Material Condition formula mikebispham Excel Discussion (Misc queries) 9 February 5th 06 09:14 PM
Can you sort with check boxes? Q Excel Discussion (Misc queries) 3 November 10th 05 08:11 PM
check boxes - copy MarkT Excel Discussion (Misc queries) 2 October 20th 05 04:33 PM
Nexsted if across 3 columns Felicity Geronimo Excel Worksheet Functions 4 November 17th 04 11:08 AM


All times are GMT +1. The time now is 03:09 PM.

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

About Us

"It's about Microsoft Excel"