T
Thrava
hi folks,
I want to test whether a checkbox is checked or not,
i've written this code, but no matter whether or not I
check the box or un-check it, it gives me the same message
that it is checked.
Can someone tell me what am I doing wrong?
Private Sub CheckBox1_Click()
If CheckBox1.Value = 1 Then
MsgBox ("NONE SELECTED")
Else: MsgBox ("CHECKED")
End If
End Sub
I want to test whether a checkbox is checked or not,
i've written this code, but no matter whether or not I
check the box or un-check it, it gives me the same message
that it is checked.
Can someone tell me what am I doing wrong?
Private Sub CheckBox1_Click()
If CheckBox1.Value = 1 Then
MsgBox ("NONE SELECTED")
Else: MsgBox ("CHECKED")
End If
End Sub