Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/07/2005, 15:35
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 20 años
Puntos: 839
Primeramente, la forma como estás filtrando los números está incorrecta, así va a ser mejor:
Código:
Private Sub Text1_Change()
If Not IsNumeric(Text1) Then
    Text1 = Text1.Tag
    MsgBox "Ingrese solo numeros", vbCritical, "Numeros"
Else
    Text1.Tag = Text1
End If
End Sub
Y en el KeyPress solo colocas el KeyAscii 13 para filtrar el Enter y KeyAscii 9 para anular el Tab.... nos vemos
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.