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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Open Check 1

Status
Not open for further replies.

Sech

Programmer
Jul 5, 2002
137
GB
Does anyone know Access code that can be used to check whether or not Outlook is open, and if not display a message asking the user to open it? I know how to do this for Lotus Notes but not for Outlook/Outlook Express.
 
VBA that runs on Excel or Access (any Office program)
Code:
Sub Check_4_Outlook()

Dim objOutlook As Object
On Error Resume Next

Set objOutlook = GetObject(, "Outlook.Application")
If Err.Number <> 0 Then MsgBox "Please open the Outlook"
Set objOutlook = Nothing

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top