|
|
Title | Make a button with colored text using a CheckBox |
Keywords | CheckBox, command button, CommandButton, button, colored text |
Categories | Controls |
|
|
It looks like and acts like a button, but it is a checkbox.
Make a button with colored text using a CheckBox.
The important step is to use a CheckBox with Style = Graphical.
Thanks to Tim Rude.
|
|
Private Sub Check1_Click()
If Check1.Value = vbChecked Then
Check1.Value = vbUnchecked
' Do something.
MsgBox "Clicked"
End If
End Sub
|
|
Formatted by
Neil Crosby
|
|
|
|
|
|