![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: automation, email, error, send, trying |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi
I have ms access vba code that sends emails via outlook. The problem is that the code previously working fine is now giving error on the following line of code; Set objOutlook = CreateObject("Outlook.Application") The error is "Run-time error '-2147024770 (8007007e)': , Automation error, The specified module could nor be found." What is the problem and how can I fix it? Thanks Regards |
| Ads |
|
#2
|
|||
|
|||
|
If you get an error from code statements like these:
Dim ol as New Outlook.Application Set ol = CreateObject("Outlook.Application") the cause may be an anti-virus program on your computer that has a feature to block Outlook scripting. If so, the solution is to turn off the script blocking feature. You may need to contact technical support for your anti-virus program to find out how to do that. I've also seen reports that setting the server parameter can resolve this problem in some situations: Set ol = CreateObject("Outlook.Applicaton", localhost) -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "John" wrote in message ... Hi I have ms access vba code that sends emails via outlook. The problem is that the code previously working fine is now giving error on the following line of code; Set objOutlook = CreateObject("Outlook.Application") The error is "Run-time error '-2147024770 (8007007e)': , Automation error, The specified module could nor be found." What is the problem and how can I fix it? Thanks Regards |
|
#3
|
|||
|
|||
|
Hi Sue
Set objOutlook = CreateObject("Outlook.Application", "localhost") has fixed it for me. Many Thanks Regards "Sue Mosher [MVP-Outlook]" wrote in message ... If you get an error from code statements like these: Dim ol as New Outlook.Application Set ol = CreateObject("Outlook.Application") the cause may be an anti-virus program on your computer that has a feature to block Outlook scripting. If so, the solution is to turn off the script blocking feature. You may need to contact technical support for your anti-virus program to find out how to do that. I've also seen reports that setting the server parameter can resolve this problem in some situations: Set ol = CreateObject("Outlook.Applicaton", localhost) -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "John" wrote in message ... Hi I have ms access vba code that sends emails via outlook. The problem is that the code previously working fine is now giving error on the following line of code; Set objOutlook = CreateObject("Outlook.Application") The error is "Run-time error '-2147024770 (8007007e)': , Automation error, The specified module could nor be found." What is the problem and how can I fix it? Thanks Regards |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Automation error when trying to send email | John | Outlook - General Queries | 2 | October 29th 07 08:57 PM |
| Outlook 2003 - Before send automation | paredondo | Outlook - Using Forms | 0 | January 31st 07 03:25 PM |
| Automation error with view control | technobob@bellsouth.net | Outlook and VBA | 0 | November 6th 06 05:24 AM |
| Run-time error Automation Error | David | Outlook and VBA | 2 | April 25th 06 12:46 AM |
| Automation Error | Lightknight | Outlook and VBA | 3 | April 4th 06 03:46 PM |