In Outlook, when you create a meeting item, you invite people to the meeting. You hit CTRL-K or the Check Names button, and Outlook will find that person in the Address Book or not--in which case it will give you a dialog box with names from which to choose.
But I'm doing that in VBA. How can I choose a name if I'm using code?
In other words, I've got the code to where it'll create an appointment item, set the type to olMeeting, add a Recipient, and set the type to olRequired. Then, if ResolveAll is false, it'll generate a custom error message; if it's true, that means Outlook has found that unique person in the Addresss Book.
But instead of generating the custom error message, I want to resolve the conflict then and there, either by letting the user choose from a list, or by having the code choose by using more criteria than the Check Names feature uses.
That is, I think I want to be able to access through code the list of address book entries that come up in the dialog box when we are "checking names." E.g., if I'm inviting John and there are two Johns, I could access through code who those two Johns are, rather than just generating the custom error message.
Thanks in advance.
-Christopher
, and save it (I'm not sending it).
But I'm doing that in VBA. How can I choose a name if I'm using code?
In other words, I've got the code to where it'll create an appointment item, set the type to olMeeting, add a Recipient, and set the type to olRequired. Then, if ResolveAll is false, it'll generate a custom error message; if it's true, that means Outlook has found that unique person in the Addresss Book.
But instead of generating the custom error message, I want to resolve the conflict then and there, either by letting the user choose from a list, or by having the code choose by using more criteria than the Check Names feature uses.
That is, I think I want to be able to access through code the list of address book entries that come up in the dialog box when we are "checking names." E.g., if I'm inviting John and there are two Johns, I could access through code who those two Johns are, rather than just generating the custom error message.
Thanks in advance.
-Christopher
, and save it (I'm not sending it).