* oWord.filenewdefault * Some code do while findWindowHandle("Microsoft Word - Document1")<>0 enddo ? "Word exited" * Unfortunately you need exact win title (don't know another way) FUNCTION findWindowHandle() lparameter tcWinTitle DECLARE integer FindWindow in WIN32API string cNull, string cWinName return FindWindow(0,tcWintitle) ENDFUNCMaybe a timer event could also control ?