FollowHyperlinks opening multiple browser windows

  • Thread starter Thread starter EricIsDeliriou5
  • Start date Start date
E

EricIsDeliriou5

Hi All.

One of my Excel apps has some "Go To" functionality in it. I am using
the following code to open a browser window to an address in a web
application that we are using:

ThisWorkbook.FollowHyperlink Address:=sLinkInit & Cells(ActiveCell.Row,
iInitCol).Value, NewWindow:=False

The problem is that every time this code executes, it opens a new
browser window and does not reuse the existing browser window that is
already open. So depending on how many times the user executes the "Go
To" functionality, they can end up with a bunch of browser windows open
to my web app.

I need some help building a function that will test to see if a browser
window is already open, and if there is a browser window open, use that
window for the FollowHyperlink method.

Any help at all would be greatly appreciated!

TIA,
Eric
 
In my experience,
The Newwindow argument only pertains when Excel is opened in a browser. It
doesn't sound like that is the case for you, so it won't work that way.
 

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

Back
Top