I thank you for being polite but please drop the Sir.
I had a typing error in the validate function. I had a capital Z when it should have been a lower case z in. - Corrected code at the end of this message.
re your comment
Thanks for ur support,but sir this does not validate if a emailid contains two @
e.g."mukesh@@sify.com"
The validation function rejects the email address if there are 2 @ next to each other. Is this what you want or do you want it to approve it.
The validation function also allows the email address to have multiple @ as long as they are not next to the 1st @
Rejects "mukesh@@sify.com"
Allows "muk@esh@sify.com"
Allows "muk@esh@@sify.com"
The Emailvalidate macro can be modified to check each entry in a column.
I suggest we look at that part after we get the validation function working correctly.
Amended validation function code
Bookmarks