Add a link to contact for a mail item

M

Michele

I can manually add a link to an existing contact for an email message
clicking on the "Contact linking" button inside the message options. But
other than choosing an existing contact i can also input whatever i want in
the text control of the "Contact linking" field inside the message options.
While i can do this manually i need to find a way to do the same thing using
vba. Using the Links.Add method for a mailitem i need to use as the argument
for the Add method an existing ContactItem object so i cannot simpy use for
example ExampleMailItem.Links.Add "Test". Manually i can insert the string
"Test" inside the text control of the "Contact linking" field even if a
contact called “Test†doesn’t exist .
Is there a way to insert a string inside the text field of the "Contact
linking" field of a mailitem programmatically?
Thanks a lot
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top