Hello, what is the way to access public folders in Outlook?
I tried this:


Dim dosContacts As Outlook.MAPIFolder
Set dosContacts = Application.GetNamespace("MAPI").GetDefaultFolder(olPublicFoldersAllPublicFolders)

but it says it's waiting for an object...
In fact, the folder I want to access is in Public Folders\All Public Folders\ and is called Public Contacts.

So how can I access the items (which are contacts) in this folder in VBA???