Hi Cyseng10
The SHELL function runs an executable program and returns a Variant (Double) representing the program's task ID if successful, otherwise it returns zero.
Syntax
Shell(pathname[,windowstyl
eg.
Dim RetVal
RetVal = Shell("C:\WINDOWS\CALC.EXE
Specifying 1 as the second argument opens the application in normal size and gives it the focus.
Your program A can use this function to execute and determine the success/failure of program B
EB
Main Topics
Browse All Topics





by: twalgravePosted on 2002-11-18 at 17:45:29ID: 7466712
Why does B need to be an application? What if B were simply a component that you can call from A. Components are much better for passing data back and forth. A component can be very complex and act just like an application. Please explain in more detail. Instead of program A, Program B, please state it like this to help us help you:
I am writing a program called "MyProgram"
MyProgram is calling a 3rd party program called "Excel"
or
MyProgram is calling another program I am developing called "MyCheckerProgram"
Thanks.