|
|
Проверка запущенно-ли указанное в аргументе приложение?
Public Function IsApplicationOpen(sAppObjectName$) As Boolean
Dim objApp As Object
On Error GoTo IsApplicationOpen_Err
Set objApp = GetObject(, sAppObjectName)
IsApplicationOpen = True
IsApplicationOpen_Bye:
Set objApp = Nothing
Exit Function
IsApplicationOpen_Err:
Err.Clear
Resume IsApplicationOpen_Bye
End Function
|
|