K
Kristi
I have a userform with a checkbox and a text box. If the checkbox is not
checked, I want the adjacent text box to be disabled and dimmed. When the
box is checked, I want the text box to become enabled. I thought coding the
text box as disabled automatically made the box dimmed, but it is not
working. My code is below. The text is disabled as desired in the sense
that you cannot edit it, but it is not dimmed. What's wrong?
Private Sub chkEnclosure_Click()
If chkEnclosure = "True" Then
cmbEnclosure.Enabled = True
Else
cmbEnclosure.Enabled = False
End If
End Sub
checked, I want the adjacent text box to be disabled and dimmed. When the
box is checked, I want the text box to become enabled. I thought coding the
text box as disabled automatically made the box dimmed, but it is not
working. My code is below. The text is disabled as desired in the sense
that you cannot edit it, but it is not dimmed. What's wrong?
Private Sub chkEnclosure_Click()
If chkEnclosure = "True" Then
cmbEnclosure.Enabled = True
Else
cmbEnclosure.Enabled = False
End If
End Sub