Looking in Contact

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
 
M

Michael Bauer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top