0
votes

Our sales department monitor eachothers mailboxes. Each user has every other users mailboxes open as an additional mailbox.

Whenever a new employee comes along, we have to visit each users' PC to add the additional mailbox(es) to their Outlook profile. This is a waste of resources and is something I'd like to automate.

There must be a way of programmatically doing this via VBA Script, or some such means? Searching on Google hasn't been particularly helpful.

2

2 Answers

0
votes

The Outlook object model (Outlook VBA) doesn't provide anything for editing user profiles. You can try to use a low level API - Extended MAPI. See Administering Profiles and Message Services for more information.

0
votes

Since you are using VBA, you cannot uses Extended MAPI (C++ or Delphi).

If using Redemption is an option, you can us its RDOSession.Stores.AddDelegateExchangeMailBoxStore method to add a delegate mailbox to the current profile.

If you do not want to log to the profile fist, you can use the ProfMan library to add a mailbox. See http://www.dimastr.com/redemption/profman_examples.htm#example6