A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , , ,

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





 
 
Thread Tools Display Modes
  #1  
Old February 7th 06, 04:51 PM posted to microsoft.public.outlook.program_vba
carteriii
external usenet poster
 
Posts: 1
Default possible to open two profiles at the same time with VBA???

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.
Ads
  #2  
Old February 7th 06, 11:23 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,404
Default possible to open two profiles at the same time with VBA???

You can't do it. You can only log into one Outlook profile, then close
Outlook and log in with a different profile.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"carteriii" wrote in message
...
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.


  #3  
Old February 8th 06, 04:47 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,561
Default possible to open two profiles at the same time with VBA???

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"carteriii" wrote in message ...


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.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA shortcut to open custom form in design mode? Burma Jones Outlook - Using Forms 2 March 6th 06 07:17 PM
Outlook calendar time zone: current time is 1 hour ahead of clock Natalie Outlook - Calandaring 2 February 12th 06 05:26 AM
I get multiple copies of the same email every time I open outlook Rick Outlook - General Queries 1 February 11th 06 05:58 PM
How do I have multiple profiles open an once matzkamis Outlook - Installation 5 January 26th 06 03:50 AM
Changing Series Appt time from All Day to set time Bryan Outlook - General Queries 1 January 17th 06 03:24 AM


All times are GMT +1. The time now is 04:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Credit Cards UK - Refinance - Vacation Spots - Electricity - Loans