?
Solved

Add Activexexe to the  referenfce of a vba application Automaticaly

Posted on 2002-07-18
4
Medium Priority
?
151 Views
Last Modified: 2010-05-02
Hi experts:
 I made an activexexe application with vb and this activex
 is to be used in another vba applications I want my  
 activex to be added automaicaly in the reference of the  
 vba application once the user made setup to my  
 application.

Thanks in advance.
0
Comment
Question by:nermeen
[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
  • 2
4 Comments
 
LVL 2

Expert Comment

by:priya_pbk
ID: 7161752
use late binding and create an object of this dll/exe. It will automatically reference it.

-priya
0
 
LVL 2

Accepted Solution

by:
priya_pbk earned 200 total points
ID: 7161764
I mean this way,

After making your exe(by make exe), in your vb application you can write this(i have written in form load event)This is without putting a reference.

Private Sub Form_Load()
Set p = CreateObject("prtest.cltest")
MsgBox p.mytest
End Sub

'------------------------

Hope this helps

-priya

0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8013939
Hi nermeen,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept priya_pbk's comment(s) as an answer.

nermeen, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 8095647
Comment from expert accepted as answer

Computer101
E-E Admin
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Suggested Courses

764 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