Forum Discussion
Check boxes
Hello,
is there any way to make one check box being able to control other check boxes?
Let's suppose I have a list of five options. I want the user to be able to click on another check box (the 6th one) to select/deselect all the five option by the same time.
I was hoping to do it without using VBA.
Thanks in advance
Eugenio
2 Replies
- PascalKTeamIron Contributor
Hi ebottino_74
Bad news: Not possible without VBA
Good news: The code you need is very simple. Is this the behaviour you are looking for?
Attached file contains the VBA code
Code is:
Private Sub CheckBox3_Click()
If CheckBox3 = True Then
CheckBox2 = True
CheckBox1 = True
Else
CheckBox2 = False
CheckBox1 = False
End IfEnd Sub
- ebottino_74Copper Contributor
HiPascalKTeam ,
thanks for your reply!
I was hoping it was possible without VBA, but if not I'll use your code!
Thank you very much
Eugenio