Solved

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

Posted on 2000-02-28
1
465 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need VBS version of Excel date conversion 4 71
VBA color chart bars 12 86
Windows 10 start screen issues 9 55
How to Add / Edit Windows Menu 4 61
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…

777 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