[dba-VB] Is Outlook Open (VB6)

Mike and Doris Manning mikedorism at ntelos.net
Tue Feb 18 08:21:07 CST 2003


I tried that but it doesn't always yield the correct results, so I chose to
handle it via API calls instead.

Doris Manning
Database Administrator
Hargrove Inc.
www.hargroveinc.com




-----Original Message-----
From: dba-vb-admin at databaseadvisors.com
[mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Bryan Carbonnell
Sent: Tuesday, February 18, 2003 08:05 AM
To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com
Subject: Re: [dba-VB] Is Outlook Open (VB6)


Cross-posted to AccessD and dba-vb

On 18 Feb 2003 at 10:14, paul.hartland at fsmail.net wrote:

> Anyone know how I can check to see if MS Outlook is open using VB6 ?

Paul,

How about something like this:

Dom objOut as object

On Error Resume Next

set objOut = GetObject("Outlook.Application")

if Err <> 0 Then
  MsgBox "Outlook is not open"
Else
  Msgbox "Outlook is open"
End if


--
Bryan Carbonnell - carbonnb at sympatico.ca
We've all heard that a million monkeys banging on a million 
typewriters will eventually reproduce the entire works of 
Shakespeare.
Now, thanks to the Internet, we know this is not true.^ [Robert 
Wilensky (1997)]


_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com





More information about the dba-VB mailing list