Hi,
Do You make any call to an external program in the VBA-procedure?
If so then You need to use Win API with the following APIs:
Code:
Private Declare Function OpenProcess Lib "kernel32" ( _
ByVal dwDesiredAccess As Long, _
ByVal bInheritHandle As Long, _
ByVal dwProcessId As Long) As Long
Private Declare Function GetExitCodeProcess Lib "kernel32" ( _
ByVal lnghProcess As Long, _
lpExitCode As Long) As Long
Private Const PROCESS_ALL_ACCESS = &H1F0FFF
BTW, Excel can only work with one process at the time.
Kind regards,
Dennis