Solved

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

Posted on 2000-02-28
1
473 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
[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
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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 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 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…
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

628 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