Reference Exchange Public Folder in vb.net

C

Chris Thunell

I have some vb.net code that goes and gets some information from our
Contacts Public folder named "Pierce Contacts". As you see from the code
below, i reference this folder by first navigating to the folder in outlook.
Is there any way to reference the public folder programatically.
The exchange public folder is under
"Public Folders"
"All Public Folders"
"Pierce Contacts"

Sample code:
ol = New outlook.Application
olns = ol.getnamespace("MAPI")
***-> olFolder = ol.activeexplorer.currentfolder <-****** 'currentfolder'
CurFolder = olFolder.name
AllItems = olFolder.items
NumItems = AllItems.count


For Each Itm In AllItems
'do some stuff here
Next
 

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