Private Sub Object_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger) If Not Chr(KeyAscii) Like "[0-9]" Then KeyAscii = 0 End If End Sub