A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , ,

Automation error when trying to send email





 
 
Thread Tools Display Modes
  #1  
Old October 26th 07, 04:46 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
John
external usenet poster
 
Posts: 135
Default Automation error when trying to send email

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  
Old October 26th 07, 04:50 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Automation error when trying to send email

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  
Old October 29th 07, 08:57 PM posted to microsoft.public.outlook,microsoft.public.outlook.program_vba
John
external usenet poster
 
Posts: 135
Default Automation error when trying to send email

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 05:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Online Advertising - Car Loan - Hen Night - Cash Advance - Company Reports