Detect whether there is an account configured in Outlook

  • Thread starter Thread starter ward376
  • Start date Start date
W

ward376

What is the test to see whether this line will open Outlook 2007 or
the Outlook 2007 Startup Wizard?

CreateObject("Outlook.Application")

Registry key 'HKEY_CURRENT_USER\Software\Microsoft\Windows NT
\CurrentVersion\Windows\Messaging Subsystem\Profiles' has entries, but
the current user does not have an account configured in Outlook.

One thing that may help is that prior to this line, network
connectivity is confirmed - can I "ping" Exchange or something like
that?

Thanks!
Cliff Edwards
 
I want to test whether an account is configured for the current user
before instantiating Outlook to prevent the Startup Wizard from
opening.

Is this possible, and how can I do it?
 
You might try seeing what shell is associated with the "mailto"
protocol. Look in the default value of the key:

HKCR\mailto\shell\open\command

and see if the string "Outlook" is present. This isn't an iron clad
way of doing it, but it might be "good enough" for your purposes.

Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]
 
Chip, if you don't have an iron-clad way, I know I can stop looking.

Thanks!
Cliff Edwards
 
Back
Top