Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Dim iOpt%
For iOpt = 1 To 9
If Controls("OptionButton" & iOpt).Value = True Then
KeyAscii = 0
Exit For
End If
Next iOpt
End Sub
Private Sub TextBox2_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Dim iOpt%
For iOpt = 1 To 9
If Controls("OptionButton" & iOpt).Value = True Then
KeyAscii = 0
Exit For
End If
Next iOpt
End Sub
Private Sub OptionButton1_Click(ByVal KeyAscii As MSForms.ReturnInteger)
Dim iTxt%
For iTxt = 1 To 2
If Controls("TextBox" & iOpTxt).Value = True Then
KeyAscii = 0
Exit For
End If
Next iTxt
End Sub