Returning the Task ID of the Started Application : Shell « Windows API « VBA / Excel / Access / Word






Returning the Task ID of the Started Application

 
Sub task()
    Dim myTaskID As Long
    myTaskID = Shell("c:\w.exe")
End Sub

 








Related examples in the same category

1.Creates a text files and saves it
2.SendKeys to another application
3.Starting Another Application
4.Having Excel dial the phone, one key at a time
5.Using VBA to Program Open XML Files