Is this a TextBox on a UserForm?
Somewhat crude, but try the following:
Private Sub TextBox1_Change()
If Not IsNumeric(TextBox1.Text) Then _
SendKeys "{BACKSPACE}"
End Sub
--
Vasant
"Greg B" wrote in message
...
Hi all just wondering how I can get someone only to type number in a
certain
textbox?
Thanks in advance
Greg
|