-1

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

0m3r
  • 12,286
  • 15
  • 35
  • 71
Arran 88
  • 1
  • 1
  • 3
    Possible duplicate of [Get reference to additional Inbox](https://stackoverflow.com/questions/9076634/get-reference-to-additional-inbox) – niton Oct 22 '20 at 17:00
  • https://stackoverflow.com/a/43274164/4539709 – 0m3r Oct 22 '20 at 20:13

1 Answers1

0

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.

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78