how to call an external program ? 
Author Message
 how to call an external program ?

Hi, all:
 how to call an external program (a compiled
fortran program) from a Excel VB Macro ?
Do I have to generate a DLL for this ?
I am pretty sure this is a common practice
in VB, just I am new to VB ...
Any help, suggestions will be appreciated.
Regards,
Tong.


Thu, 29 Aug 2002 03:00:00 GMT  
 how to call an external program ?
In article


Quote:
> Hi, all:
>  how to call an external program (a compiled
> fortran program) from a Excel VB Macro ?
> Do I have to generate a DLL for this ?
> I am pretty sure this is a common practice
> in VB, just I am new to VB ...
> Any help, suggestions will be appreciated.
> Regards,
> Tong.

Probably u are talking of Shell function.
Ex:
' Specifying 1 as the second argument opens the application in
' normal size and gives it the focus.
Dim RetVal
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1)   ' Run Calculator.

(from msdn)
Regards.
--
Samik Raychaudhuri
IIT Kharagpur

Sent via Deja.com http://www.deja.com/
Before you buy.



Thu, 29 Aug 2002 03:00:00 GMT  
 how to call an external program ?

Quote:
> how to call an external program (a compiled
>fortran program) from a Excel VB Macro ?

Look for the Shell-command in your manual. I think it is:

Res = Shell("program.exe", 1)

CU Sepp



Thu, 29 Aug 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Need a pause when calling an external program!

2. call external program from vb application

3. calling up a outlook contact from external program

4. Calling an external program (and waiting until it's finished)

5. calling external program with extracted shape data

6. Call an external program

7. Call external program

8. Calling an external Program from VB6 with Parameters

9. calling external .exe program from VB

10. Newbie: Help with calling an external EXE program

11. Call external program and get results?

12. How to call external programs

 

 
Powered by phpBB® Forum Software