Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

XL97 vba references

Posted on 1998-12-22
1
Medium Priority
?
204 Views
Last Modified: 2010-05-03
I have a custom written 16 bit exe that I can add as a reference in XL vba. This enables me to use the object browser. However when I try to run a worksheet that uses this reference on another machine (which has the exe in the same place) excel complains about a missing reference - how do references work and how do I overcome this problem.
0
Comment
Question by:egunn
1 Comment
 
LVL 1

Accepted Solution

by:
jeffcameron earned 100 total points
ID: 1451896
To overcome this problem, you can indirectly reference it by string using the CreateObject(class name as string) this will eliminate the need for the program to store the guid and reference by this.  The problem with design time referencing like you are doing is that if the program was compiled at different times then it will have two different GUIDs and will cause this problem.  Otherwise you will have to compile both the program on the other machine and the program on the development machine at the same time.  Also on install to the other machine you must register the program with the windows registry.  you can use the program C:\WINDOWS\SYSTEM\REGSVR32.EXE filename to do this or most setup software gives you this option.  16bit however this may or may not work, you will have to experiment.  Try this and let me know how it goes.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
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…
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

885 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