Hi peolple.
I have the code below that allows only number into 'TextBox1'.
Is it possible just one code to work same way for all the 12 textboxes of a form?
If yes, please, give me a guidance.
thanks in advance for all.
[vba]Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If Shift Then KeyCode = 0
Select Case KeyCode
Case 8, 13, 46, 48 To 57, 96 To 105, 109, 110, 189, 190
Case Else
KeyCode = 0
End Select
End Sub [/vba]