shared inbox how do you get vba to go there instead of my own inbox

78 views Asked by At

Set inboxFolder = outNS.GetDefaultFolder(olFolderInbox)

this bit goes to my default inbox but i have a shared inbox how would i get it to take the emails from there . any suggestions be great i have tried a few things my self but no success

1

There are 1 answers

0
Dmitry Streblechenko On

Use either Namespace.GetSharedDefaultFolder or (if the mailbox is already open in the current profile), use Namespace.Store collection to find the right store, then use Store.GetDefaultFolder.