If you launch the other app using a return variable you can use SendKey to sen the other an ALT F4 and shut it down.<br>
<br>
To launch another app: (calculator as an example)<br>
<br>
RetCalc = Shell(Environ("windir" & "\system32\CALC.EXE", 1) ' Run Calculator.<br>
<br>
then to close it down:<br>
<br>
'If Calculator running, activate and close it<br>
If RetCalc <> 0 Then<br>
AppActivate RetCalc<br>
SendKeys "%{F4}", True<br>
End If<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.