Scope of variable

A

avi

Hello,

I have written an EXE file in VB6 that i call from a VBA module. In
the EXE file i declared Public a variable 'aaa'. Is that variable
available in the VBA code or should i do something to make it
available?

Thanks a lot
Avi
 
N

NickHK

Assuming you have created a standard .exe in VB6 then basically no. You
would need some other means of the communication with the app's internal
variables.
If you make an ActiveX exe (or dll for that matter), with classes and public
properties etc, then yes you can see those Public member, the same as you
can see Excel's properties, methods etc.

NickHK
 
B

Bob Phillips

No it isn't. You could write the VB6 as a DLL, expose the variable as a
property, and call that from the VBA.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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