View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.office.developer.vba,microsoft.public.word.vba.general
Karl E. Peterson[_2_] Karl E. Peterson[_2_] is offline
external usenet poster
 
Posts: 6
Default Best Practice for Obtaining hWnd

Manfred F wrote:
I'm not an API expert, but to get the handle for the word application window
GetActiveWindow Lib "user32" () As Long
works pretty fine : -)


You have very good company on that advice!

http://blogs.msdn.com/oldnewthing/ar...6/8969399.aspx

I shall consider myself appropriately admonished for habitual overreach, here.

Thanks... :-)
--
..NET: It's About Trust!
http://vfred.mvps.org