Private Sub TextBox1_LostFocus() If IsDate(TextBox1.Text) = False Then MsgBox ("Debe ingresar una fecha") TextBox1.SetFocus End If End Sub