How check if Outlook is running

  • Thread starter Thread starter Tommy D
  • Start date Start date
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
 
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
 
Back
Top