Private Sub Text1_Change()
If Option1.Value = True Then
Select Case Val(Text1.Text)
Case 12, 34, 24, 45, 30, 38, 44, 21
Text1.BackColor = vbRed
Case Else
Text1.BackColor = vbWhite
End Select
End If
If Option2.Value = True Then
Select Case Val(Text1.Text)
Case 46, 12, 34, 39, 36, 25, 39, 20
Text1.BackColor = vbRed
Case Else
Text1.BackColor = vbWhite
End Select
End If
End Sub