I'm using the following code to send an email. But if the email field has no value or is empty the code blows up.
How can I, if the email field is empty have a chance to manually enter a value and have the code continue?
Basically prompt me to enter a value if it's empty...
With MailOutLook
.To = [Memailsent]
' .bcc = ""
.Subject = "Subject"
.Body = "Body" _
' .Send
.Display
End With
How can I, if the email field is empty have a chance to manually enter a value and have the code continue?
Basically prompt me to enter a value if it's empty...
With MailOutLook
.To = [Memailsent]
' .bcc = ""
.Subject = "Subject"
.Body = "Body" _
' .Send
.Display
End With