ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Creating "grouped" checkboxes (https://www.excelbanter.com/excel-programming/371116-creating-grouped-checkboxes.html)

aeshower

Creating "grouped" checkboxes
 

Hello all,

Is it possible to create a group of checkboxes wher
checking/unchecking the top box, the "parent," would default the res
of the group, the "children?"

It is also required that the "children" can change their stat
independently from the "parent" if they are individuall
checked/unchecked.

Finally, is there a way to modify the functionality of the checkbox?
The desired functionality is to have certain cells in the linkedcel
row to become bold once the checkbox is checked, and unbolded once th
checkbox is unchecked. This functionality is only to be performed b
the children.

Thank you for your consideration,
Aaro

--
aeshowe
-----------------------------------------------------------------------
aeshower's Profile: http://www.excelforum.com/member.php...fo&userid=3787
View this thread: http://www.excelforum.com/showthread.php?threadid=57418


Excelenator[_52_]

Creating "grouped" checkboxes
 

This code will have Checkbox1 act as the "parent" to the Checkboxe
2-5.


Code
-------------------
Private Sub CheckBox1_Change()
CheckBox2.Value = -CheckBox1.Value
CheckBox3.Value = -CheckBox1.Value
CheckBox4.Value = -CheckBox1.Value
CheckBox5.Value = -CheckBox1.Value
End Su
-------------------

--
Excelenato

-----------------------------------------------------------------------
Excelenator's Profile: http://www.excelforum.com/member.php...fo&userid=3676
View this thread: http://www.excelforum.com/showthread.php?threadid=57418


aeshower[_2_]

Creating "grouped" checkboxes
 

Thank you Excelenator,

However, this problem requires that dynamically added checkboxes
possess this functionality and I have no idea on how to automatically
add our method to newly ceated checkboxes.

Thanks again,
Aaron


--
aeshower
------------------------------------------------------------------------
aeshower's Profile: http://www.excelforum.com/member.php...o&userid=37876
View this thread: http://www.excelforum.com/showthread...hreadid=574185



All times are GMT +1. The time now is 07:25 PM.

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