possible to open two profiles at the same time with VBA???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to open two Outlook profiles at the same time in order to do a
little data comparison/synchronization of calendar data. Is this possible,
and if so, how?

I created a VBA macro within Outlook. This VBA macro tries to logon to a
specified NameSpace. Unfortunately it appears this NameSpace.Logon is being
ignored (all subsequent operations happen to the currently open profile). I
tried passing true in the NewSession parameter, but that did not have an
effect. It's now my understanding that it may not be possible to use VBA to
open two profiles even if the VBA code resides outside of the Outlook
application (called directly from a VB project or another Office
application). Can I get around this?

In case you're wondering why I want to do this, and perhaps someone can
suggest a work-around, I am trying to get around another apparent limitation
that Outlook will not display calendar data from an Exchange server and from
a personal .pst file within one profile. The personal data in the .pst file
is not allowed to reside on the corporate Exchange server (simply marking it
as private is not sufficient). I would also love to learn of a way to view
one calendar from exchange and one from a .pst file in the same profile,
which would then both be accessible to one VBA routine.
 
You can't do it. You can only log into one Outlook profile, then close
Outlook and log in with a different profile.
 
I don't understand what limitation you're seeing. Outlook is perfectly capable of showing calendars in both a mailbox and one or more .pst files. Those files should, of course, reside on your local hard drive. They are completely separate from your mailbox.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top