![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
All
I have a VBA module I copied from the internet and modified it to do what I needed. Sorry, I don't remember who provided it (but thanks whoever you were). Anyway, here is the bit that seems to be causing some trouble. For Each objOutlookRecip In .Recipients objOutlookRecip.Resolve Next This code seems to be kind of hit and miss. When it works - it works well. But, certain contacts, which I know I have in my address book, will not resolve. In the "To" field of the email, I get a red underline. In my reading, I believe that meant the name was not in the address book. I've double and triple checked spelling but I can't seem to make it work. Does anyone have a clue what might be causing this situation? Thanx in advance Dale |
Ads |
#2
|
|||
|
|||
![]()
Does the contact in question reside in a contacts folder visible in the
Outlook Address Book? Is there a chance that you have duplicate/ambiguous contacts? What happens when you hit Ctrl+K after you type the name of the contact in question in the To edit box in Outlook? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dale" D-Man wrote in message ... All I have a VBA module I copied from the internet and modified it to do what I needed. Sorry, I don't remember who provided it (but thanks whoever you were). Anyway, here is the bit that seems to be causing some trouble. For Each objOutlookRecip In .Recipients objOutlookRecip.Resolve Next This code seems to be kind of hit and miss. When it works - it works well. But, certain contacts, which I know I have in my address book, will not resolve. In the "To" field of the email, I get a red underline. In my reading, I believe that meant the name was not in the address book. I've double and triple checked spelling but I can't seem to make it work. Does anyone have a clue what might be causing this situation? Thanx in advance Dale |
#3
|
|||
|
|||
![]()
Dmitry
Question #1 answer. I guess so, if I go to the contacts folder and right click on it, then select properties, under the Outlook Address Book tab, the name of the address book is "Contacts". Hope that answers your question. Question #2 I think the control K action may indicate something. I get 2 entries. The email address and also the Business fax such as this: Name Email Type Dale Jones SMTP Dale Jones (Business Fax) FAX What I can't figure out is there is only one contact in the address book. I do have a Fax phone number typed in for that person however. What's going on? Regards Dale "Dmitry Streblechenko" wrote in message ... Does the contact in question reside in a contacts folder visible in the Outlook Address Book? Is there a chance that you have duplicate/ambiguous contacts? What happens when you hit Ctrl+K after you type the name of the contact in question in the To edit box in Outlook? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dale" D-Man wrote in message ... All I have a VBA module I copied from the internet and modified it to do what I needed. Sorry, I don't remember who provided it (but thanks whoever you were). Anyway, here is the bit that seems to be causing some trouble. For Each objOutlookRecip In .Recipients objOutlookRecip.Resolve Next This code seems to be kind of hit and miss. When it works - it works well. But, certain contacts, which I know I have in my address book, will not resolve. In the "To" field of the email, I get a red underline. In my reading, I believe that meant the name was not in the address book. I've double and triple checked spelling but I can't seem to make it work. Does anyone have a clue what might be causing this situation? Thanx in advance Dale |
#4
|
|||
|
|||
![]()
This is absolutely normal - OAB exposes each of Email1, Email2, Email3 and
FAX addresses as a separate entry. When you type the name of the address, OAB has no idea which address exactly you want to use - they both are valid. If you know the SMTP address, use it instead of thee contact name - it can always be resolved to a one-off entry. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dale" D-Man wrote in message ... Dmitry Question #1 answer. I guess so, if I go to the contacts folder and right click on it, then select properties, under the Outlook Address Book tab, the name of the address book is "Contacts". Hope that answers your question. Question #2 I think the control K action may indicate something. I get 2 entries. The email address and also the Business fax such as this: Name Email Type Dale Jones SMTP Dale Jones (Business Fax) FAX What I can't figure out is there is only one contact in the address book. I do have a Fax phone number typed in for that person however. What's going on? Regards Dale "Dmitry Streblechenko" wrote in message ... Does the contact in question reside in a contacts folder visible in the Outlook Address Book? Is there a chance that you have duplicate/ambiguous contacts? What happens when you hit Ctrl+K after you type the name of the contact in question in the To edit box in Outlook? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dale" D-Man wrote in message ... All I have a VBA module I copied from the internet and modified it to do what I needed. Sorry, I don't remember who provided it (but thanks whoever you were). Anyway, here is the bit that seems to be causing some trouble. For Each objOutlookRecip In .Recipients objOutlookRecip.Resolve Next This code seems to be kind of hit and miss. When it works - it works well. But, certain contacts, which I know I have in my address book, will not resolve. In the "To" field of the email, I get a red underline. In my reading, I believe that meant the name was not in the address book. I've double and triple checked spelling but I can't seem to make it work. Does anyone have a clue what might be causing this situation? Thanx in advance Dale |
#5
|
|||
|
|||
![]()
Thanx Dimity
I was afraid of that. Well what about this? I gather the name to be resolved via Word automation from an email "coversheet" so to speak. If the client approves, he/she will print and sign and fax back to me. Multiple email recipients could be resolved from one line of text. Is there a way to code around multiple address book name choices? Possibly to search for the email type = "SMTP" as a way of choosing or at least narrowing the possibilities? Am I going about this wrongly or can is there a better approach? As a side thought, how do I determine (codewise) if the name has or has not been resolved? Regards Dale "Dmitry Streblechenko" wrote in message ... This is absolutely normal - OAB exposes each of Email1, Email2, Email3 and FAX addresses as a separate entry. When you type the name of the address, OAB has no idea which address exactly you want to use - they both are valid. If you know the SMTP address, use it instead of thee contact name - it can always be resolved to a one-off entry. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dale" D-Man wrote in message ... Dmitry Question #1 answer. I guess so, if I go to the contacts folder and right click on it, then select properties, under the Outlook Address Book tab, the name of the address book is "Contacts". Hope that answers your question. Question #2 I think the control K action may indicate something. I get 2 entries. The email address and also the Business fax such as this: Name Email Type Dale Jones SMTP Dale Jones (Business Fax) FAX What I can't figure out is there is only one contact in the address book. I do have a Fax phone number typed in for that person however. What's going on? Regards Dale "Dmitry Streblechenko" wrote in message ... Does the contact in question reside in a contacts folder visible in the Outlook Address Book? Is there a chance that you have duplicate/ambiguous contacts? What happens when you hit Ctrl+K after you type the name of the contact in question in the To edit box in Outlook? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dale" D-Man wrote in message ... All I have a VBA module I copied from the internet and modified it to do what I needed. Sorry, I don't remember who provided it (but thanks whoever you were). Anyway, here is the bit that seems to be causing some trouble. For Each objOutlookRecip In .Recipients objOutlookRecip.Resolve Next This code seems to be kind of hit and miss. When it works - it works well. But, certain contacts, which I know I have in my address book, will not resolve. In the "To" field of the email, I get a red underline. In my reading, I believe that meant the name was not in the address book. I've double and triple checked spelling but I can't seem to make it work. Does anyone have a clue what might be causing this situation? Thanx in advance Dale |
#6
|
|||
|
|||
![]()
I don't think there is much you can do unless you explicitly find the
corresponding contact in the Contacts folder and read the e-mail address (ContactItem.Email1Address). To see whether a recipient was resolved, call Recipient.Resolve or Recipients.ResolveAll; both will return a boolean indicating success or failure. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dale" D-Man wrote in message ... Thanx Dimity I was afraid of that. Well what about this? I gather the name to be resolved via Word automation from an email "coversheet" so to speak. If the client approves, he/she will print and sign and fax back to me. Multiple email recipients could be resolved from one line of text. Is there a way to code around multiple address book name choices? Possibly to search for the email type = "SMTP" as a way of choosing or at least narrowing the possibilities? Am I going about this wrongly or can is there a better approach? As a side thought, how do I determine (codewise) if the name has or has not been resolved? Regards Dale "Dmitry Streblechenko" wrote in message ... This is absolutely normal - OAB exposes each of Email1, Email2, Email3 and FAX addresses as a separate entry. When you type the name of the address, OAB has no idea which address exactly you want to use - they both are valid. If you know the SMTP address, use it instead of thee contact name - it can always be resolved to a one-off entry. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dale" D-Man wrote in message ... Dmitry Question #1 answer. I guess so, if I go to the contacts folder and right click on it, then select properties, under the Outlook Address Book tab, the name of the address book is "Contacts". Hope that answers your question. Question #2 I think the control K action may indicate something. I get 2 entries. The email address and also the Business fax such as this: Name Email Type Dale Jones SMTP Dale Jones (Business Fax) FAX What I can't figure out is there is only one contact in the address book. I do have a Fax phone number typed in for that person however. What's going on? Regards Dale "Dmitry Streblechenko" wrote in message ... Does the contact in question reside in a contacts folder visible in the Outlook Address Book? Is there a chance that you have duplicate/ambiguous contacts? What happens when you hit Ctrl+K after you type the name of the contact in question in the To edit box in Outlook? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dale" D-Man wrote in message ... All I have a VBA module I copied from the internet and modified it to do what I needed. Sorry, I don't remember who provided it (but thanks whoever you were). Anyway, here is the bit that seems to be causing some trouble. For Each objOutlookRecip In .Recipients objOutlookRecip.Resolve Next This code seems to be kind of hit and miss. When it works - it works well. But, certain contacts, which I know I have in my address book, will not resolve. In the "To" field of the email, I get a red underline. In my reading, I believe that meant the name was not in the address book. I've double and triple checked spelling but I can't seem to make it work. Does anyone have a clue what might be causing this situation? Thanx in advance Dale |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I resolve Contact folder data source issues? | SJD30942 | Outlook - Using Contacts | 8 | April 13th 10 11:53 PM |
Cannot resolve address with contacts folders | maduce | Outlook - Using Contacts | 1 | August 10th 06 11:15 PM |
What does Resolve do? | salad | Outlook and VBA | 4 | July 29th 06 07:15 PM |
How do I resolve desktop error code 85010014? | Mia | Outlook and VBA | 0 | June 15th 06 05:31 PM |
How to resolve error message 0X8004210A | grneyeldy1966 | Outlook - Installation | 1 | March 29th 06 05:32 AM |