>>>How can i bring the Microsoft excel window (ie) to top from vfp?
>>
>>Use the FindWindow and ShowWindow API Calls. The Find will give you the Window Handle and Show will use that Handle.
>>
>>HTH
>
>Where can i get the declarations and sintax of theese functions ?. Thanks
Carlos,
You can find the declarations for the functions ShowWindow(), etc. elsewhere in this thread. However, I don't think that FindWindow() is going to work for you in this case. Unfortunately, FindWindow() requires that the
exact title of the window be passed and is case sensitive to boot. Since Excel has a dynamic title bar, showing the open selected file, this is difficult, if not impossible to know. Optionally, you could pass it the class name of the window, but there's no guarantee that it won't change between versions. That's why I recommended the Is_Run32 function.
George
Ubi caritas et amor, deus ibi est