Thread: Address Book
View Single Post
  #22  
Old June 5th, 2004, 03:57 PM
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: n/a
Default Address Book

Namespace.GetDefaultFolder() returns your default Contacts folder, i.e. the
one in the hierarchy whose top level is labeled Outlook Today, the same one
where your default Inbox resides. The Items collection is the collection of
all items in that folder.

When in doubt, check the object browser: Press ALt+F11 to open the VBA
environment in Outlook, then press F2. Switch from All Libraries to
Outlook to browse all Outlook objects and their properties, methods, and
events. Select any object or member, then press F1 to see its Help topic.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Roy" wrote in message
...
Hello Sue,

Don't know if you are tyring to figure out the problem I am having or have

simply given up on it.

In your line of code,
Set colContacts = objNS.GetDefaultFolder(olFolderContacts).Items

How can I get to see what Contact Folder the system is bringing up. I

imagine this code is bringing up all the contacts in my contact folder. IF
it is not, can you please explain what that line of code is doing.

Thanks,

Roy.