R Robgould Guest Jan 27, 2006 #1 I think this should be simple, but I am not having much luck. All I want to do is write code to find out if the user has outlook open or not. Does anyone know how to do this?
I think this should be simple, but I am not having much luck. All I want to do is write code to find out if the user has outlook open or not. Does anyone know how to do this?
S SMatthews Registered User. Local time Today, 13:38 Joined Nov 13, 2001 Messages 38 Jan 27, 2006 #2 Sub TestforOutlook() Dim objOutlook As Object On Error Resume Next Set objOutlook = GetObject(, "Outlook.Application") On Error GoTo 0 If objOutlook Is Nothing Then MsgBox "Outlook not running" Else MsgBox "Outlook is running" End If End Sub Retrieved from http://groups.google.com/group/micr...b6e4b00290450e7?sa=X&oi=groupsr&start=0&num=3
Sub TestforOutlook() Dim objOutlook As Object On Error Resume Next Set objOutlook = GetObject(, "Outlook.Application") On Error GoTo 0 If objOutlook Is Nothing Then MsgBox "Outlook not running" Else MsgBox "Outlook is running" End If End Sub Retrieved from http://groups.google.com/group/micr...b6e4b00290450e7?sa=X&oi=groupsr&start=0&num=3