Activate Word

J

Jean Ryckebosch

Hello all,

I'm trying to activate an existing Word instance (I'm doing this through Ole
automation). Actually, my app tries to run a Macro that will activate Word.

Here's the code for this macro (pretty simple stuff):

Application.Visible=True
Application.Activate

I'm working on a Windows XP machine. This does not work completely. If I run
the macro from my app, Word gets the focus at first, but the taskbar button
flashes a few times. After that, the Word title bar is not highlighted and I
still have to set the focus manually. How can I fix this? (using Win32 calls
in the macro???)

Any help would be greatly appreciated

Kind regards,

Jean
 
Top