
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.