?
Solved

Dredded 429

Posted on 2002-05-06
6
Medium Priority
?
155 Views
Last Modified: 2010-05-02
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"
0
Comment
Question by:rrh0561
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 6991205
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
0
 

Author Comment

by:rrh0561
ID: 6991377
Wasn't aware of that "minor" detail.  Let me try that.
0
 

Author Comment

by:rrh0561
ID: 6991922
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?  
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 300 total points
ID: 6993480
if you use
Dim o1 As Outlook.Application
then you will need the same version (binary compatible) of outlook installed.
Note that some "same" version with different languages (french, german etc) sometimes are NOT binary compatible with the main english verison.

Note that OL2k is not compatible with OL9x etc

Cheers
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7722288
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
0
 

Author Comment

by:rrh0561
ID: 7724701
Sorry for the delay
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month15 days, 6 hours left to enroll

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question