Solved

how to dynamic refer to a DLL from VBA (PowerPoint)?

Posted on 2000-02-28
1
467 Views
Last Modified: 2010-05-18
Hi, experts,

I created a VB ActvieX DLL. It is used in PowerPoint by referencing to it.

Anyone can tell me how to create a dynamic referncing to the DLL from the PowerPoint VBA so as the application can be used in various platform such as Windows and WinNT? This dll is correctly registered in windows\system and winnt\system32. When I used the PowerPoint application in WinNT, it always indicated referencing error because it has already refered to Windos\system through Reference Dialog Box of VBA.

thanks a lot,
beginner
0
Comment
Question by:pxiao
1 Comment
 
LVL 8

Accepted Solution

by:
stefanx earned 50 total points
ID: 2566430
Well, you can do this in one of two ways. In Powerpoint's VBA Editor go to the menu Tools..References and select your ACtiveX DLL's classname from the list of available components. Otherwise, use code such as :

Dim Z As Object

Set Z = CreateObject("MyProject.ClassName")

where MyProject is the project name of the DLL and ClassName is the name of your class.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

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…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

828 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