how can I check if outlook is already open and running in VB6?

M

Mark

Hello. Using VB6, how can I check to see if a user has Outlook
currently open and running on their machine?

Thank you!
Sincerely,
Mark
 
K

Ken Slovak - [MVP - Outlook]

Dim oOL As Outlook.Application
On Error Resume Next
Set oOL = GetObject(, "Outlook.Application")
If oOL Is Nothing Then 'Outlook not running yet
Err.Clear
Set oOL = CreateObject("Outlook.Application") 'start Outlook
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top