Solved

XL97 vba references

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adding to a VBA? 6 70
Access query that references subform 5 47
Visual Studio 2005 text editor 10 38
converting visio 2010 to powerpoint 2010  - formatting issues 5 72
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…
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 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…

773 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