J
JSM
Hi,
I have an application which outputs RTF files to Word, which in turn runs a
macro on the open document. The problem is sometimes Word does not open in
the foreground, I need to manually select it in the task bar to bring it to
the front. How can I bring the active window in Word to the foreground
(using VBA). I've tried using the Activate method on the document's window
but it only makes it the active window in Word, it does not bring it to the
foreground. I've looked at the SetWindowPos API call but I need to pass it
the hwnd of the active window, something which to my knowledge VBA does not
provide for.
I am using Word 2000/2002 on Windows 2000.
Cheers,
John
I have an application which outputs RTF files to Word, which in turn runs a
macro on the open document. The problem is sometimes Word does not open in
the foreground, I need to manually select it in the task bar to bring it to
the front. How can I bring the active window in Word to the foreground
(using VBA). I've tried using the Activate method on the document's window
but it only makes it the active window in Word, it does not bring it to the
foreground. I've looked at the SetWindowPos API call but I need to pass it
the hwnd of the active window, something which to my knowledge VBA does not
provide for.
I am using Word 2000/2002 on Windows 2000.
Cheers,
John