Making a browser window open on top using VBA

B

Bill Cunningham

I'm using VBA within a Word doc to link to an application
that resides on an intranet. The VBA passes a query string
to the other application, and opens an instance of that
application through an Internet Explorer Browser Window.

My problem is, the browser window opens underneath any
other windows that are currently open, but I need it to
open on top.

This is the code I'm using to call the other app:

LinkToWebApplication WEB_PAGE_ADDRESS & "?" &
sQueryString, WEB_SUB_PAGE_ADDRESS

Is there some trick I can add to this to insure that the
web page opens up on top of any other windows?

Thanks!
 
B

Bill Cunningham

Apologies, this question was phrased incorrectly. The code
that actually calls the web site is:

ThisDocument.FollowHyperlink address, subAddress, True

The "True" is for the "New Window" property that will
cause the link to open in a new browser window.

The problem is, on some users' machines, this opens
politely on top of all other windows, while on other
users' it opens the new window rudely underneath other
open windows, so it seems to these users that nothing has
happened.

Is there any way to insure that the window opens on top
all the time?

Thanks!
 

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