Is there a way to tell if Outlook is open before sending a message and open it if it's not?
I have some old code that I have been using:
'Determine If Outlook Is Open. If Not, Open.
Set objOutlook = GetObject(, "Outlook.Applic ation") ' Determine if Outlook is open.
If Err <> 0 Then
Call Shell("C:\Progr am Files\Microsoft Office\OFFICE12 \OUTLOOK.EXE")
End If
But the problem is...is that even if Outlook is open, the code will open another instance of it, which is not ideally what I want.
Thanks in advance.
Jeff
I have some old code that I have been using:
'Determine If Outlook Is Open. If Not, Open.
Set objOutlook = GetObject(, "Outlook.Applic ation") ' Determine if Outlook is open.
If Err <> 0 Then
Call Shell("C:\Progr am Files\Microsoft Office\OFFICE12 \OUTLOOK.EXE")
End If
But the problem is...is that even if Outlook is open, the code will open another instance of it, which is not ideally what I want.
Thanks in advance.
Jeff
Comment