K
kittronald
What is the VB macro code to "check" a Check Box forms control ?
- Ronald K.
- Ronald K.
What is the VB macro code to "check" a Check Box forms control ?
- Ronald K.
Is this the shortest way to test if a Checkbox is already checked ?
Sub TEST()
If Sheet2.CheckBoxes("Check Box 23").Value = False Then
Sheet2.CheckBoxes("Check Box 23").Value = True
Else
Sheet2.CheckBoxes("Check Box 23").Value = True
End If
End Sub
- Ronald K.
Garry,
Got it to work with a little modification.
If Not Sheet2.CheckBoxes("Check Box 23") Then
Sheet2.CheckBoxes("Check Box 23") = True
Thanks again.
- Ronald K.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.