Checkbox - Change color of label when clicked

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to change the background color of a checkbox label when it is
checked and change it back to white if it is un-checked?
 
Hi

Private Sub CheckBox1_Change()
If CheckBox1.Value = True Then
CheckBox1.BackColor = RGB(0, 255, 0)
Else
CheckBox1.BackColor = RGB(255, 255, 255)
End If

End Sub

hth
 
Back
Top