Macro to open another user's Inbox

L

lizlexy

I'm trying to find code to create a macro to open another user's mailbox
which I have access to. Please can you help?
Thanks!
 
K

Ken Slovak - [MVP - Outlook]

The easiest and most complete way would be to add that mailbox to your
Outlook profile so it gets opened as soon as you open Outlook. That's a
non-code solution.

If you just want to get a specific default folder open you should look at
the Object Browser help on NameSpace.GetSharedDefaultFolder().
 
P

pmkdatabase

'Ken Slovak - [MVP - Outlook said:
;142544']The easiest and most complete way would be to add that mailbo
to your
Outlook profile so it gets opened as soon as you open Outlook. That'
a
non-code solution.

If you just want to get a specific default folder open you should loo
at
the Object Browser help on NameSpace.GetSharedDefaultFolder().

I need to do this as well, but sorry to be dense - I don't understan
how to go about it. Say I add the mailbox to the profile, and ope
Outlook with that profile. Then I have multiple mailboxes. Now I a
using VBA code from Access as follows:
Set oFolder
Outlook.Application.Session.GetDefaultFolder(olFolderInbox)

How can I identify which mailbox is which? Also, does the other use
have to specifically share the mailbox? Thanks
 

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