G
Guest
I am trying to get a message box to appear when the user doesn't fill in
required information. The following will do that, however, if the userform is
closed, the message will still show up..I am new at all of this so any help
would be greatly appreciated.
Thanks in advance.
Dawn
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim mybox As String
mybox = TextBox1.Text
If Not IsEmpty(mybox) And mybox = "" Then
MsgBox "Enter KanBan Number", vbOKOnly
Cancel = True
Else
End If
End Sub
required information. The following will do that, however, if the userform is
closed, the message will still show up..I am new at all of this so any help
would be greatly appreciated.
Thanks in advance.
Dawn
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim mybox As String
mybox = TextBox1.Text
If Not IsEmpty(mybox) And mybox = "" Then
MsgBox "Enter KanBan Number", vbOKOnly
Cancel = True
Else
End If
End Sub