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"
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"
ASKER
Wasn't aware of that "minor" detail. Let me try that.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
ASKER
Sorry for the delay
CHeers