Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / December 2003

Tip: Looking for answers? Try searching our database.

Outlook profiles questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tmaster - 26 Dec 2003 23:52 GMT
Are there properties or methods of the Outlook object that will answer these
questions?

Q1: When I'm automating Outlook from VB, how do I know how many outlook
profiles are defined on a computer?
Q2: And, which profile is default?
Q3: And, which is the currently selected profile?
Q4: Can I loop through each profile and process its folders?

Also, what exactly is a profile? Is it just a separate PST file?
Dmitry Streblechenko - 28 Dec 2003 16:24 GMT
A profile is a collection of MAPI service providers - store providers,
address book providers, transport providers, etc. PST is a store provider
(you can also have Exchange, Notes, GW, etc).
Profiles can be enumerated/modified using Extended MAPI only (or ProfMan
that comes with the distributable version of Redemption, url below, click
Redemption, then Profiles).
If you only need to access stores in all profiles using Outlook Object
Model, read their list from
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles
then call Namespace.Logon() passing the name of the profile. Be sure to
dereference all Outlook objects before doing so to make sure Outlook does
log to that profile instead of keeping a reference to the previously used
profile.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Are there properties or methods of the Outlook object that will answer these
> questions?
[quoted text clipped - 6 lines]
>
> Also, what exactly is a profile? Is it just a separate PST file?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.