Outlook 2007 Macro to Contact From a Field

LMS

Senior Member
Outlook version
Outlook 2007
Email Account
Exchange Server
Here is the macro you gave me in the past that opens up a folder in the contact folders. What can we change so that in a field of the contact, there is a name of a person from another folder, so when I click on the macro it opens up the person of the field that has the name in that field. And the name of the field is "IntroPerson"

Public Sub Family_Folder2()

Dim fldContacts As outlook.MAPIFolder
Set fldContacts = Session.GetDefaultFolder(olFolderContacts).folders("Family")
fldContacts.Display

End Sub
 

LMS

Senior Member
Outlook version
Outlook 2007
Email Account
Exchange Server
Any update on this please?
 

LMS

Senior Member
Outlook version
Outlook 2007
Email Account
Exchange Server
Any update on this please?
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Sorry I missed this - kept putting it off then went out of town for a week.

I don't know if getcontact would work in your version of Outlook or in your usage - i have an example at Assign Categories to Messages using Contact Category that looks up the contact for the sender.

A variation of this should work -
strFilter = customfieldvalue
Set findContact = NS.GetDefaultFolder(olFolderContacts).Items.Restrict(strFilter)
 
Top