Hyperlinks that Open in a Different Browser Window

by Allen Wyatt
(last updated August 10, 2013)

2

Hudson noted that when he creates a hyperlink to a webpage within Excel, the link works fine—when he clicks the link, the browser is opened and the webpage displayed. However, when Hudson turns the worksheet into a webpage, the hyperlink doesn't work like he wants it to. When someone clicks on the link, the target webpage opens in the same browser window and Hudson would prefer that it open in a new browser window. He wonders if there is some way to tell Excel, when creating the hyperlink, to open the target in a new browser window.

There is, unfortunately, no way to do this within Excel that we've been able to discover. What has to happen is that the HTML anchor tag has to include the target attribute (which it doesn't, by default) and the target needs to be set to "_blank". Excel doesn't provide a way to get this specific with how you want hyperlinks to be handled.

The only solution is, undoubtedly, unsatisfactory—you need to edit the HTML code created by Excel so that the links include the target attribute. You can open the file in any text editor, such as Notepad, but the manual editing of the links is time-intensive and every time you regenerate the webpage within Excel you'll overwrite your previous changes to the HTML document.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (4080) applies to Microsoft Excel 2000, 2002, and 2003.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Setting Gap Spacing in the Equation Editor

The Equation Editor is a great tool that allows you to add equations to your document. You have quite a bit of control over ...

Discover More

Two Page Numbers per Physical Page

Want to save paper when printing your document? Just print two pages per sheet of paper and you'll get rid of only half as ...

Discover More

Viewing Formulas in Table Cells

Word allows you to insert simple formulas, using fields, in table cells. If you want to see these formulas in their entirety, ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (menu)

Linking to a Specific Page in a PDF File

The HYPERLINK function is great for linking to Web pages and some other resources, but it won't allow you to access a target ...

Discover More

Get Rid of Web Stuff

When you copy information from a Web page and paste it into a worksheet, you can end up with more than you bargained for. ...

Discover More

References to Hyperlinks aren't Hyperlinks

Make a reference to a hyperlink in a formula, and you may be surprised that the reference doesn't return an active hyperlink. ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 4 + 1?

2016-09-22 14:23:04

Mark Watsom

I had this problem too: It used to work fine with Excel 2003 - but not 2010.
But I have just found a way which is easier than editing the HTML code!

Just copy & paste the text containing the hyperlinks into Word - use the hyperlink editor to say "New Window", then copy & paste it back to Excel.

Works a treat!


2013-12-11 09:04:52

Stephen Bolsover

Thanks very much for this. In my case the edit is not too bad, I can globally change '.html' to '.html" target="_blank"'

I wanted to do this because the Excel file generates an html page that sits within an iframe; without the 'target="_blank"' the link opened within that iframe, which looked pretty silly. You can see the working version at http://www.harrowncf.org/HNCF_working_parties.html

Steve


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.