Looking in Contact

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have a script that looking for a contact in the default contact folder using
set myOlApp = CreateObject("Outlook.Application")

set myNameSpace=myOlApp.GetNameSpace("MAPI")
set oCurrentFolder=myNameSpace.GetDefaultFolder(10)

I'm looking for a script that search in all contacts folders I have (I have
several contacts folders)
Thanks
 
Am Sat, 26 Nov 2005 23:52:01 -0800 schrieb Idan:

Idan, each folder has a Folders collection. You can loop with For Each
through a collection and check each folder for DefaultItemType=olContactItem
 
Back
Top