View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Erwin Kalvelagen Erwin Kalvelagen is offline
external usenet poster
 
Posts: 2
Default how to get hwnd from application object?


Hi:

I am using Excel from another app using COM/OLE. I need
to bring the Excel window to the foreground. Is there any way
to the hWnd from the Application object? Now I use the
FindWindow API call to find the Excel window
but that is not foolproof.

Thanks, Erwin


----------------------------------------------------------------
Erwin Kalvelagen
GAMS Development Corp., http://www.gams.com
, http://www.gams.com/~erwin
----------------------------------------------------------------