Prabhu
08-26-2017, 08:55 AM
Hi,
could anyone help me why the attached excel vba is not working.
Kenneth Hobson
09-05-2017, 04:30 AM
I don't see an error or "not working" using Display to test rather than Send. For your test emails in A2, the Like is not matched.
While you could use InStr() to test for the "@" character, this simple Like might suffice.
If sh.Range("A2").Value Like "*@*.*" Then
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.