Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub YourTextBox_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
'Numerical characters are allowed
Case 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 104
Case vbKeyDelete, vbKeyBack, vbKeyReturn, vbKeyRight, vbKeyLeft, vbKeyTab
[b]Case vbKeyNumpad0, vbKeyNumpad1, vbKeyNumpad2, vbKeyNumpad3, vbKeyNumpad4, vbKeyNumpad5, vbKeyNumpad6, vbKeyNumpad7, vbKeyNumpad8, vbKeyNumpad9[/b]
'Non-numerical characters are not allowed
Case Else
KeyCode = 0
End Select
End Sub