We are using an internal application that opens MS WORD creating a report using VBA macro's.
If the report already exist, a message pops up in WORD (initiated by a VBA macro) showing that the report already exist.
This works fine as long as MS WORD was not opened at that moment.
If MS WORD is started by the application WORD get the focus and is on top of the windows.
But, when WORD was already open when the internal application is activating WORD, the internal application stays in focus (on top) of the windows and the popup message is underneath other windows and waits for user-input (pressing the OK button).
Because this popup window is not on top, users sometimes wait for minutes until they find out that the popup windows is underneath the other windows and they have to activate this window by themselves.
Is there a way in VBA to take focus of MS WORD or this popup window (message box) ?
I hope you understand the problem of this story.
If the report already exist, a message pops up in WORD (initiated by a VBA macro) showing that the report already exist.
This works fine as long as MS WORD was not opened at that moment.
If MS WORD is started by the application WORD get the focus and is on top of the windows.
But, when WORD was already open when the internal application is activating WORD, the internal application stays in focus (on top) of the windows and the popup message is underneath other windows and waits for user-input (pressing the OK button).
Because this popup window is not on top, users sometimes wait for minutes until they find out that the popup windows is underneath the other windows and they have to activate this window by themselves.
Is there a way in VBA to take focus of MS WORD or this popup window (message box) ?
I hope you understand the problem of this story.