Hi,
I'm sending emails ok when Outlook is loaded on the machine but failing when it is not. I've searched everywhere and am getting answers about how to resolve it.
The thing is, I'm not good enough to try to get to grips with discovering whatever email the machine may have and I'm happy to say "No Outlook, No emails" so how to I test to see if Outlook is available?
My code is failing when it gets to
Set objOutlook = CreateObject("Outlook.Application")
I've tried testing objOutlook for IsNull, IsEmpty or = "" but these tests are after the error and the code fails before it reaches them.
Thanks, Mike
UPDATE. If you keep looking you can find it...
Dim appOutlook As Outlook.Application
On Error Resume Next
Set appOutlook = CreateObject("Outlook.Application")
If Err.Number = 429 Then
MsgBox "You Do Not have Outlook Installed"
Exit Sub
End If
Problem solved.
I'm sending emails ok when Outlook is loaded on the machine but failing when it is not. I've searched everywhere and am getting answers about how to resolve it.
The thing is, I'm not good enough to try to get to grips with discovering whatever email the machine may have and I'm happy to say "No Outlook, No emails" so how to I test to see if Outlook is available?
My code is failing when it gets to
Set objOutlook = CreateObject("Outlook.Application")
I've tried testing objOutlook for IsNull, IsEmpty or = "" but these tests are after the error and the code fails before it reaches them.
Thanks, Mike
UPDATE. If you keep looking you can find it...
Dim appOutlook As Outlook.Application
On Error Resume Next
Set appOutlook = CreateObject("Outlook.Application")
If Err.Number = 429 Then
MsgBox "You Do Not have Outlook Installed"
Exit Sub
End If
Problem solved.
Last edited: