Starting Another Application : Shell « Windows API « VBA / Excel / Access / Word






Starting Another Application

 
Sub RunCharMap()
    On Error Resume Next
    Program = "notepad.exe"
    TaskID = Shell(Program, 1)
    If Err <> 0 Then
        MsgBox "Cannot start " & Program, vbCritical, "Error"
    End If
End Sub

 








Related examples in the same category

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