I used the isnumeric feature as follows:
Private Sub textbox1_Change()
If IsNumeric(TextBox1.Value) = False Then TextBox1.Value = ""
End Sub
This eliminates the message box and just clears the textbox whenever
anything other than a numbe is entered. And I used the maxlength
property on the ones where I wanted to limit the length.
Cool.
Plus, I figured out the Select Case feature from Hutch's answer which
I could also use to restrict answers as follows:
Select Case TextBox.Value
Case 2,4,6,8
TextBox.Value = TextBox.Value
Case Else
TextBox.Value = ""
End Select