Linking to other VB apps

S

Steve Andrews

Sullivan,

While I'm not an expert at this, I have gotten it to work
on one application. First, compile your VB 6.0
application as a DLL. Next, reference this DLL from your
VBA using Tools\References\Browse.

To call functions within VBA, use functions as follows:
Dim MyObj As Object
Dim result As Double

'Create object.
Set port_str = CreateObject("MyReference.MyClass")
result = port_str.MyFunction(parameters_passed)

Give this setup a try and see if you have any luck.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top