Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Testing for active applications

Status
Not open for further replies.

gb433054

Aerospace
Jul 24, 2003
28
Can anyone tell me how to test if an application such as Outlook is open

thanks in advance
 
Replies continue below

Recommended for you

Use GetObject, which will return an error if your program is not running. Test for the error.

[tt]
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[/tt]

Good Luck
johnwm
________________________________________________________
To get the best from these forums read faq731-376 before posting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor