Código: Text If Not IsNumeric(TextBox1.Text) Then MsgBox "Solo se permiten Numeros" Exit SubEnd If