Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with VBA coding sending email thru Outlook:

Status
Not open for further replies.

dmkAlex

Programmer
Nov 25, 2005
66
US
I have the following code in my Excel. It worked perfectly until I install Norton Internet Security 2006 yesterday.

Here's the code:

Sub RedemptionMail(xAdd, xMsg, subj)
Dim SafeItem, oItem
Dim OL As New Outlook.Application
Set SafeItem = CreateObject("Redemption.SafeMailItem") 'Create an instance of Redemption.SafeMailItem

Set oItem = OL.CreateItem(0) 'Create a new message
SafeItem.Item = oItem 'set Item property
SafeItem.to = xAdd
SafeItem.Body = xMsg
SafeItem.Recipients.ResolveAll
SafeItem.Subject = subj
SafeItem.Send
End Sub

I have Microsoft Outlook 11.0 Object Library checked in my reference and Redemption.dll is in my program directory.

It sent out emails using Outlook 2003.

But right now I bombed in the line:

Set oItem = OL.CreateItem(0)

The error said "Automation Error. Module not found".

Is there a conflict between Outlook and Internet Security 2006, or Redemption.

I have tried uninstlled both Redemption and Internet Security to no avail.

Need some help here.

Thanks.

Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top