Connecting Tech Pros Worldwide Forums | Help | Site Map

run VB6 from excel?

Familiar Sight
 
Join Date: Oct 2006
Posts: 135
#1: Apr 26 '07
is it possible to run a VB6 program from a VBA Excel macro? If it is, would it also be possible to pass a value to the VB6 program?

Moderator
 
Join Date: Oct 2006
Location: Australia
Posts: 7,748
#2: Apr 26 '07

re: run VB6 from excel?


Quote:

Originally Posted by manontheedge

is it possible to run a VB6 program from a VBA Excel macro? If it is, would it also be possible to pass a value to the VB6 program?

You can use the Shell function to run an EXE, regardless of the language in which it was created. Also, I expect that you can pass data on the command line, by including it in the string passed to Shell. Your VB program would pick up the parms from Command$.

There are other ways to communicate with your application - for example DDE, or OLE automation.
Reply