J
JimP
I have a module that uses Outlook automation such that I need to define the
following,
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment
This works fine when Outlook is installed and there is a reference to the
"Microsoft Outlook 11.0 Object Library". However, there is a compile error
when the library is not found (Outlook is not installed). How can I
accommodate both situations, without errors?
following,
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment
This works fine when Outlook is installed and there is a reference to the
"Microsoft Outlook 11.0 Object Library". However, there is a compile error
when the library is not found (Outlook is not installed). How can I
accommodate both situations, without errors?