Tag Archive: Outlook VBA

Jan
08
2012

Reading Outlook Recipient Details (JobTitle, Alias, Address etc) Through VBA

Here is a piece of outlook VBA code which can be used to read recipient details such as JobTitle, Alias, Address etc. While there are many complex work around exist for this I believe the code below will simplify the details capture with the help of outlook ‘exchange user’ property.       Sub ReadRecpDetail() …

Continue reading »

Jan
08
2012

Adding Outlook Recipients through VBA

The following code will add e-mail recipients (To/Receivers list) through outlook VBA code           Sub Add_Receipients()   Dim myOlApp As Outlook.Application Dim myItem As Outlook.MailItem    Set myOlApp = CreateObject(“Outlook.Application”) Set myItem = myOlApp.CreateItem(olMailItem)    ‘adding recipients R1 = myItem.Recipients.Add(“email_ID1@somedomain.com”) R2 = myItem.Recipients.Add(“email_ID1@somedomain.com”)    ‘display the e-mail message with added recipients …

Continue reading »