How to connect to another user's Inbox

  • Thread starter gimme_this_gimme_that
  • 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.
 
G

gimme_this_gimme_that

Hi Dmitry,

Thanks.

Could you be more specific? Both my Inbox and the user's folder folder
is named InBox.
 
D

Dmitry Streblechenko

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
 

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