Inbox - GetSharedDefaultFolder

S

Summer

I am trying to access another inbox that is mapped to my outlook. I would like to loop thru that inbox like I do mine. The problem is I use this code to access my default inbox: Set TestFolder = olns.GetDefaultFolder(olFolderInbox)
In order to access the other Inboxes attached to my Outlook I thought GetSharedDefaultFolder would work, but I'm not sure if I'm doing it right.


Summer
 
S

Summer

I figured it out sometimes trial and error goes a long way..
Heres the helpful code:

dim olns as outlook.namespace

For j = 1 To olns.Folders.count

Debug.Print olns.Folders.Item(j).Name
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