Solved

XL97 vba references

Posted on 1998-12-22
1
193 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
[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 1

Accepted Solution

by:
jeffcameron earned 50 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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 …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

734 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