Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

runtime error

Posted on 1999-07-15
2
Medium Priority
?
122 Views
Last Modified: 2010-05-02
How to solve "Cannot create ActiveX object!!" error in run time. Why cannot use "Createobject" in the statment? It will occur run time error.
0
Comment
Question by:galvani
[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
2 Comments
 
LVL 10

Accepted Solution

by:
caraf_g earned 400 total points
ID: 1524905
Many possible reasons

1 Check your spelling. Maybe a typing mistake in the class name?
2 Check whether your ActiveX component was registered correctly. If not, use Regsvr32.exe to register it.
3 Perhaps the class is not creatable - you'd get the same error if you try to use CreateObject to create a VB command button or a ListView's ListItem for example. In that case, usually there is a main class for the component, and it usually has a "Create..." method for creating the object.
0
 

Author Comment

by:galvani
ID: 1524906
The error occur when I use createobject to open/create a text file.  How to solve it?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

715 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