Solved

XL97 vba references

Posted on 1998-12-22
1
189 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 50 total points
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now