Ca1icoJack
IS-IT--Management
I have three text boxes. If either or both of the first two are checked the third is activated. When both are deselected the third is deactivated, but the check in it is not removed. This makes it confusing for users.
The first two checkboxes have the following code. (With OutputData and OutputManualData reverse
___________________________________________________________
Private Sub CheckBox4_Click()
If OutputData <> "YES" Then
OutputData = "YES"
UserForm1.CheckBox2.Enabled = True
ElseIf OutputManualData = "NO" And OutputDAta = "YES" Then
OutputData = "NO"
UserForm1.CheckBox2.Enabled = False
CheckBox2.Checked = False
ElseIf OutputManualData = "YES" And OutputData = "YES" Then
OutputData = "NO"
End If
End Sub
___________________________________________________________
The third has:
___________________________________________________________
Private Sub CheckBox2_Click()
If TextBox10.Enabled = False Then
TextBox10.Enabled = True
TextBox11.Enabled = True
Else
TextBox10.Enabled = False
TextBox11.Enabled = False
End If
End Sub
___________________________________________________________
All I need is the tick in the third checkbox (2) to be removed when the first two are deselected. Any ideas how?
Thanks.
The first two checkboxes have the following code. (With OutputData and OutputManualData reverse
___________________________________________________________
Private Sub CheckBox4_Click()
If OutputData <> "YES" Then
OutputData = "YES"
UserForm1.CheckBox2.Enabled = True
ElseIf OutputManualData = "NO" And OutputDAta = "YES" Then
OutputData = "NO"
UserForm1.CheckBox2.Enabled = False
CheckBox2.Checked = False
ElseIf OutputManualData = "YES" And OutputData = "YES" Then
OutputData = "NO"
End If
End Sub
___________________________________________________________
The third has:
___________________________________________________________
Private Sub CheckBox2_Click()
If TextBox10.Enabled = False Then
TextBox10.Enabled = True
TextBox11.Enabled = True
Else
TextBox10.Enabled = False
TextBox11.Enabled = False
End If
End Sub
___________________________________________________________
All I need is the tick in the third checkbox (2) to be removed when the first two are deselected. Any ideas how?
Thanks.