Hello Everyone,
I have created 7 Active x-control checkboxes. I would like to uncheck the other 6 checkboxes when the first one is checked.
if I check All Scenarios then Scenario 1, 2, 3, 4, 5 and 6 should become unchecked.
I am not good at VBA bur I tried to write this code but abviously it is not working.
Private Sub CheckBox1_Click()
Dim i As Byte
For i = 2 To Me.OLEObjects.Count
If Me.CheckBox1 = xlOn Then
Me.OLEObjects(i).Value = False
End If
Next i
End Sub
I have created 7 Active x-control checkboxes. I would like to uncheck the other 6 checkboxes when the first one is checked.
if I check All Scenarios then Scenario 1, 2, 3, 4, 5 and 6 should become unchecked.
I am not good at VBA bur I tried to write this code but abviously it is not working.
Private Sub CheckBox1_Click()
Dim i As Byte
For i = 2 To Me.OLEObjects.Count
If Me.CheckBox1 = xlOn Then
Me.OLEObjects(i).Value = False
End If
Next i
End Sub