Testing for active applications
Testing for active applications
(OP)
Can anyone tell me how to test if an application such as Outlook is open
thanks in advance
thanks in advance
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
Testing for active applications
|
RE: Testing for active applications
On Error Resume Next
Set myapp = GetObject(, "Outlook.Application")
If Err.Number <> 0 Then
' Outlook not running
Else
' Outlook is running already
End If
Err.Clear
On Error GoTo 0
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting