I cannot find code entirely operated out of Excel VBA to point to an inbox that is not the default inbox in Outlook.
Imagine a second inbox, with an alternative email address for special emails.
It seems Set Inbox = Ns.GetDefaultFolder(olFolderInbox)
is the natural location to alter in the appropriate code. Some suggestions involved using parent.folder
but that does not appear to function.
Assume alternative inbox has the name "New Orders"
I tried Set Inbox = Ns.GetDefaultFolder(6).Parent.Folders("New Orders")