D
Dave K
Hi all, when using the following code i get this run time error:
"run-time error '-2147024770 (8007007e), automation error, the specified
module could not be found"
<>
Function fnSendMessage(Optional strAttachment As String) As Integer
Dim objOutlook As Outlook.Application
Dim objOutMsg As Outlook.MailItem
Dim objOutRecip As Outlook.Recipient
Dim objOutAttach As Outlook.Attachment
On Error GoTo Errortrap
Set objOutlook = CreateObject("Outlook.application")
<>
The error shows at the set object line. Its rather strange as i have used
this same code before without any problems. I have checked the macro security
level in outlook and it is set to Low. Therefore i can not see any reason why
it would reject it. I have the following references set in connection to
this:
outlook 11.0 obj lib
office 11.0 obj lib
ole automation
Has anyone had this problem before or does anyone have any ideas?
Your help is much appricated!
Kind regards,
Dave
"run-time error '-2147024770 (8007007e), automation error, the specified
module could not be found"
<>
Function fnSendMessage(Optional strAttachment As String) As Integer
Dim objOutlook As Outlook.Application
Dim objOutMsg As Outlook.MailItem
Dim objOutRecip As Outlook.Recipient
Dim objOutAttach As Outlook.Attachment
On Error GoTo Errortrap
Set objOutlook = CreateObject("Outlook.application")
<>
The error shows at the set object line. Its rather strange as i have used
this same code before without any problems. I have checked the macro security
level in outlook and it is set to Low. Therefore i can not see any reason why
it would reject it. I have the following references set in connection to
this:
outlook 11.0 obj lib
office 11.0 obj lib
ole automation
Has anyone had this problem before or does anyone have any ideas?
Your help is much appricated!
Kind regards,
Dave