M
Michael Mercer
With the code shown below I can get, from Word, the
user's default Outlook contacts folder, and then a
specific subfolder beneath that, to search for a contact.
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder
(olFolderContacts)
Set myNewFolder = myFolder.Folders("TBW")
strFind = "[FileAs] = " + strContactName
Set myItem = myNewFolder.Items.Find(strFind)
But what is the code to search a Public (shared) Folder,
or better yet, to search ALL contacts in all folders,
public and otherwise?
Thanks,
--Michael
user's default Outlook contacts folder, and then a
specific subfolder beneath that, to search for a contact.
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder
(olFolderContacts)
Set myNewFolder = myFolder.Folders("TBW")
strFind = "[FileAs] = " + strContactName
Set myItem = myNewFolder.Items.Find(strFind)
But what is the code to search a Public (shared) Folder,
or better yet, to search ALL contacts in all folders,
public and otherwise?
Thanks,
--Michael