Link to home
Start Free TrialLog in
Avatar of rrh0561
rrh0561

asked on

Dredded 429

I am getting the dredded "ActivX component cannot create object" using the following code on a Win95 machine,  Win200/NT are O.K.  I'v included the reference to msoutl9.olb and tried both linking and non-linking the reference.  Any ideas?

Dim o1 As Outlook.Application
Dim e1 As Outlook.MailItem
Set o1 = New Outlook.Application
Set e1 = o1.CreateItem(olMailItem)
e1.To = "address@test.com"
e1.Subject = "Test"
e1.Body = "Test Outlook"
e1.Send
Set e1 = Nothing
MsgBox "Mail Sent"
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

I guess that you know that Outlook needs to be installed for the code to be working. Only including the msoutl9.olb will not provide the functionality for the application, it's only for making the references to the typelibs available.

CHeers
Avatar of rrh0561
rrh0561

ASKER

Wasn't aware of that "minor" detail.  Let me try that.
Avatar of rrh0561

ASKER

I installed OL 97 and get the same error.  However, one thing to note is the development PC has OL 2000.  Will the OL 9 object library work with Win95 and Win2k?  
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi rrh0561,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept angelIII's comment(s) as an answer.

rrh0561, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
Avatar of rrh0561

ASKER

Sorry for the delay