>>>>Could someone please tell me how I can get a handle to Word and then activate it. I've been trying to use FindWindow but that requires the exact window name.
>>>>
>>>>Thanks in anticipation.
>>>
>>>You can use Word Class instead of Window name. Like:
>>>
>>>DECLARE INTEGER FindWindow IN Win32API;
>>> STRING @lpClassName, STRING @lpWindowName
>>>pClass_name="OpusApp" &&for MS Word
>>>hWnd = FindWindow(pClass_name, 0)
>>
>>Yuri,
>>
>>Ok that looks good but what on earth is OpusApp?
>
>See fo instance,
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q104710&. There are listed many classes used for common windows applications.
Thank you all for your suggestions.
Caroline