I am trying to use VBA to iterate through a folder of contacts in a pst file other than the default. The other data file is open in Outlook and has the name 'Archives'.
To access the main file I have been using the following code:
Dim oContact As Outlook.ContactItem
Dim oNamespace As Outlook.NameSpace
Set oNamespace = oOut.GetNamespace("MAPI")
Dim oFolder As Outlook.MAPIFolder
Set oFolder = oNamespace.GetDefaultFolder(Outlook.OlDefaultFolde rs.olFolderContacts)
How would I alter this code to access the contacts folder in the other Data File i.e. Archives|Contacts.
Thanks in advance.