>Thanks for you efforts,
>
>I don't have a problem using FindWindow from VFP as I do not, as you said, have to specify the class. In VBA in Word on the other hand, it seems that the class have to be specified to make it work.
>
>The has to be some way to find out if an application as running as well as finding out if a window exists. Isn't there?
Hi Klas,
As Ed mentioned, passing an integer zero should work with FindWindow, since it represents a null pointer. FindWindow() intreprets that as a null string since both parameters are passed by reference.
George
Ubi caritas et amor, deus ibi est