Public Function AllowNumericOnly(ByRef Pintascii As Integer)
If Pintascii = 8 Then GoTo SetKey 'this is the backspace
If (Chr(Pintascii) < "0" Or Chr(Pintascii) > "9") And Chr(Pintascii) <> "." Then
Pintascii = 0
End If
SetKey:
AllowNumericOnly = Pintascii
End Function