Is it possible to use a word macro to execute a .exe file?

V

vincent

Is it possible to use a word macro to execute a .exe file?
How to do that?
This is discussion is open to suggestions.
Many thanks for your replying.
 
G

Graham Mayor

Yes eg

Sub Calculator()
Dim RetVal
RetVal = Shell("C:\WINDOWS\SYSTEM32\CALC.EXE", 1)
End Sub

This is covered in vba help

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Top