IsAppRunning

<< Click to Display Table of Contents >>

 

IsAppRunning

IsAppRunning(ProcessId)

Indicates if an application started by the ExecuteExternalApp method is currently executing. Returns True if an application identified on the operating system by ProcessId is executing. Otherwise returns False. Example:

Sub CommandButton1_Click()
  Application.ExecuteExternalApp _
    "www.elipse.com.br", "", "", 1, processID
  While Application.IsAppRunning(processID)
    ' Waits for this application to end
  Wend
  MsgBox "This application ended!"
End Sub

 

NOTE

The ProcessId parameter is the same value appearing on Windows Task Manager, on PID column.

Was this page useful?