View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Detect whether there is an account configured in Outlook

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]




On Fri, 18 Dec 2009 14:46:53 -0800 (PST), ward376
wrote:

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