How check if Outlook is running

T

Tommy D

Hi,

I want to check if Outlook.exe i running (started). How is
this done from VB? Is there a checking method that works
for all versions, Outlook 2000/2002/2003?

/Tommy
 
K

Ken Slovak - [MVP - Outlook]

Dim oOL As Outlook.Application

On Error Resume Next

Set oOL = GetObject(, "Outlook.Application")
If oOL Is Nothing Then
'not running already
Err.Clear
Set oOL = CreateObject("Outlook.Application") 'start it
End If
 
Top