I have a frame with 8 checkboxes in it. The checkboxes on in pairs (yes/no). On the outside of the frame I have an image ("X") and would like this to show unless 1 of each pair is selected, if yes is selected in pair 1. If no is selected in the first part then only pair 3 and 4 have to have a selection.
At the moment my code is this
Any help would be appreciated, thanks.
At the moment my code is this
Code:
Private Sub cbxYes3_Click()
If cbxYes1.Value = True Then
If cbxNo2.Value = True Or cbxYes2.Value = True _
And cbxNo3.Value = True Or cbxYes3.Value = True _
And cbxNo4.Value = True Or cbxYes4.Value = True Then
imgCross21.Visible = False
Else
imgCross21.Visible = True
End If
Else
If cbxNo1.Value = True Then
If cbxNo3.Value = True Or cbxYes3.Value = True _
And cbxNo4.Value = True Or cbxYes4.Value = True Then
imgCross21.Visible = False
Else
imgCross21.Visible = True
End If
Else
imgCross21.Visible = True
End If
End If
End Sub
Any help would be appreciated, thanks.