ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I restrict only 1 of 2 check boxes be checked? (https://www.excelbanter.com/excel-discussion-misc-queries/26464-how-do-i-restrict-only-1-2-check-boxes-checked.html)

Board

How do I restrict only 1 of 2 check boxes be checked?
 
I have 2 check boxes in an excel worksheet, and I would like to restrict it
so only one can be check at a time. So, if 1 on them is checked, and you try
to check the other one, a warning will pop up to stop you.

Peo Sjoblom

You could use code to restrict this, however what you should use are the
option buttons, they were made for this


Regards,

Peo Sjoblom


"Board" wrote:

I have 2 check boxes in an excel worksheet, and I would like to restrict it
so only one can be check at a time. So, if 1 on them is checked, and you try
to check the other one, a warning will pop up to stop you.


Jason

By code, do you mean I would have to write the code. Is there any type of
validation I could use?

"Peo Sjoblom" wrote:

You could use code to restrict this, however what you should use are the
option buttons, they were made for this


Regards,

Peo Sjoblom


"Board" wrote:

I have 2 check boxes in an excel worksheet, and I would like to restrict it
so only one can be check at a time. So, if 1 on them is checked, and you try
to check the other one, a warning will pop up to stop you.


Peo Sjoblom

Yes, yoiu have write the code or have someone write it for you, not by using
datavalidation


Regards,

Peo Sjoblom

"Jason" wrote:

By code, do you mean I would have to write the code. Is there any type of
validation I could use?

"Peo Sjoblom" wrote:

You could use code to restrict this, however what you should use are the
option buttons, they were made for this


Regards,

Peo Sjoblom


"Board" wrote:

I have 2 check boxes in an excel worksheet, and I would like to restrict it
so only one can be check at a time. So, if 1 on them is checked, and you try
to check the other one, a warning will pop up to stop you.



All times are GMT +1. The time now is 07:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com