Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Check if outlook is open 1

Status
Not open for further replies.

mbowler9

IS-IT--Management
Sep 8, 2003
105
US
I would like to know how to check if outlook is already open.


Thanks in advance for your help.
 
Code:
Function IsOutLookOpen() As Boolean
  Dim ol As Outlook.Application
  Dim blnOpen As Boolean
  
  On Error Resume Next
  Set ol = GetObject(, "Outlook.Application")
  
  If Err = 0 Then
    IsOutLookOpen = True
  Else
    Set ol = Nothing
  End If
End Function


VBSlammer
redinvader3walking.gif

[sleeping]Unemployed in Houston, Texas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top