Hi All,
I'm fairly new too VBA, but learning. Is there a better way to allow only one checkbox to be checked within a frame on my userform? Below is what I have but I have many Frames with check boxes to code.
Private Sub CheckBox73_Click()If Me.CheckBox73.Value = True Then
Sheets("TBIN").CheckBox11 = True
If Me.CheckBox73.Value = True Then
Me.CheckBox74.Value = False
Sheets("TBIN").CheckBox12 = False
Me.CheckBox63.Value = False
Sheets("TBIN").CheckBox13 = False
Me.CheckBox65.Value = False
Sheets("TBIN").CheckBox14 = False
Me.CheckBox66.Value = False
Sheets("TBIN").CheckBox15 = False
Me.CheckBox67.Value = False
Sheets("TBIN").CheckBox16 = False
Me.CheckBox75.Value = False
Sheets("TBIN").CheckBox17 = False
Me.CheckBox68.Value = False
Sheets("TBIN").CheckBox18 = False
Me.CheckBox64.Value = False
Sheets("TBIN").CheckBox19 = False
Me.CheckBox70.Value = False
Sheets("TBIN").CheckBox20 = False
Me.CheckBox69.Value = False
Sheets("TBIN").CheckBox21 = False
Me.CheckBox71.Value = False
Sheets("TBIN").CheckBox22 = False
Me.CheckBox72.Value = False
Sheets("TBIN").CheckBox23 = False
End If
End If
End Sub
Display More