How to connect to another user's Inbox

  • Thread starter Thread starter gimme_this_gimme_that
  • Start date Start date
G

gimme_this_gimme_that

I need a VBA tip on how to connect to another user's inbox.

I can add the user's inbox to my environmetn via "File->Open->Another
User's Folder" which results in an entry in my All Mail Folders
called MyCompany located at the same level as my default account
(Mailbox - Me)

In VBA how do I connect to this user's folder? It's location is :

MyCompany->Mailbox - Another, User->Inbox

Thanks.
 
Hi Dmitry,

Thanks.

Could you be more specific? Both my Inbox and the user's folder folder
is named InBox.
 
set NS = Application.Session
set Recip = NS.CreateRecipient("user name")
set SharedInbox = NS.GetSharedDefaultFolder(Recip, olFolderInbox)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top