francosueho82
New Member
- Joined
- Apr 10, 2024
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Dear, All,
I an newbie in Excel VBA. my question is :
I am going to use Excel VBA to send email.
I have a list of contact person with their corresponding email address. in my worksheet, and using xlookup to lookup the correct email address of each particular email contact.
My question is, whenever the contact who is not in my list (ctc) , VBA still use the previous found email address for that contact.
Here is my code (partial) :
Dim ctclist As Range
Dim Eaddress As Range
Dim ctcEMail As Range
Dim ctc as string
Set ctcEmail = Application.WorksheetFunction.XLookup( ctc , ctclist, Eaddress, "No Match", False)
Thank you very much for your kind help.
I an newbie in Excel VBA. my question is :
I am going to use Excel VBA to send email.
I have a list of contact person with their corresponding email address. in my worksheet, and using xlookup to lookup the correct email address of each particular email contact.
My question is, whenever the contact who is not in my list (ctc) , VBA still use the previous found email address for that contact.
Here is my code (partial) :
Dim ctclist As Range
Dim Eaddress As Range
Dim ctcEMail As Range
Dim ctc as string
Set ctcEmail = Application.WorksheetFunction.XLookup( ctc , ctclist, Eaddress, "No Match", False)
Thank you very much for your kind help.