Active Word Window, don't know it's caption

M

Matt Weaver

I script Word within a VBScript code block within IE. I used to be able
to bring by document to the front with .Activate, as in
Set oApp = CreateObject("Word.Application")
Set oDoc = oApp.Documents.Add
oApp.Visible = True
oApp.Activate
But now the Word window just blinks on the toolbar instead of coming
forward. I'm guessing some MS patch has altered this behavior. I don't
always know what the caption of the window is going to be. Can anyone
suggest a way to force Word to the front again? I don't see anything
different in my web settings. Oddly, after the first time I approve the
dialog box for ActiveX to interact with the page, it can bring Word to
the front.

thanks a million
Matt W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top