If TextBox1.TextLength = 0 Then MsgBox("ingrese un rut") Else '' validacion rut Dim validadorRut As Boolean validadorRut = validarRut(TextBox1.
Text) If validadorRut = False Then '' rut erroneo MsgBox("corriga su rut") TextBox1.Focus() TextBox1.Clear() Else MsgBox("datos enviados") End If End If