Hi there,
Try the following code and see if it does what you need.
The code assumes that if Users do NOT use a separating semicolon, they will insert at least one space character between email addresses, and it checks to see if there is a semicolon immediately before that space. If no semicolon is present an error message is generated. Email addresses separated only by semicolons (i.e. semicolons NOT followed by a space) are considered valid.
You should note that if (for whatever reason) the code which sends your email crashes, the "On Error Resume Next" statement will prevent you from being aware of this! It might be better to use ".Display" instead of ".Send", so that at least you'll be aware that your expected email has not been displayed. If you'd prefer to have the email sent automatically, I can show you a code modification which will generate an error message if the email has not been sent.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks