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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top