Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open hyperlink in Excel in same web browser

Status
Not open for further replies.

bdbBear

Programmer
Apr 29, 2005
54
0
0
US
I have a range of cells that I iterate through and add hyperlinks to using code like this:

With Worksheets("Sheet1").Hyperlinks.Add anchor:=Worksheets("Sheet1").Range("E9"), _
Address:=cHLink, TextToDisplay:=cName

When the user clicks on the hyperlink, each time a different browser is opened. Is there a way
to have the existing (if there is one) browser be used?

Thanks!
 
Go to Control Panel > Internet Options > Advanced tab. You should find a checkbox with the caption 'Reuse windows for launching shortcuts.' If that is checked it should open the link in the existing window if there is one.

No clue how you'll change that setting if you need to, but maybe this will be a start.

Thanks, Bob
 
Thanks Bob!

Now I just have figure how to do this programmatically ... probably an API call to the registry?!!!

- Bruce
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top