Numerical input into text box (1 line of code)
No attachments for this post
With this 1 line of code you can strip non-numerical input into text boxes.
Original Author: Kenneth Gilbert Jr.
Private Sub Text1_KeyPress(KeyAscii As Integer)
' Force numbers only in a text box
If IsNumeric(Chr(KeyAscii)) <> True Then KeyAscii = 0
Comments on this post
No comments have been added for this post.
You must be logged in to make a comment.