I have checkboxes on a sheet of which, the value of only one may be true at a time. (By the way, I am not allowed to use option buttons on this workbook). I have figured out the basic code to use if there are only two checkboxes involved, but each instance I have involves a minimum of three and sometimes five checkboxes.
The code I have works well (for a pair of checkboxes) provided I supply it for each control.
-
How can I include multiple checkboxes (only one of which may be True)
-
Do I have to input code for each control, or is there a way around that
Below is the (simple) code I have for one of the checkboxes.
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
CheckBox2.Value = False
End If
End Sub