Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Links to Hyperlinks.
Written by Allen Wyatt (last updated August 31, 2019)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
John has two workbooks which, for convenience, we'll call A and B. In workbook A at cell C3 on Sheet1 there is a hyperlink to a Word document. In workbook B there is a link to Sheet1!C3 in workbook A. In workbook A the hyperlink is active; in workbook B it is not. John wants to know if there is a way to make the referenced (linked) hyperlink active in workbook B.
The answer depends on several factors. If you create a link to Sheet1!C3 in workbook A (not a hyperlink), then it is not possible. If you create a hyperlink, then it is possible, provided you put your original hyperlink—the one in workbook A—together in the proper manner.
When you create a hyperlink to the Word document, you have the opportunity to create a "display" value for the link. This display value is what is shown in the worksheet, while the underlying hyperlink is something else entirely. For instance, you could have a display value of "Quarterly Report," which is what people would see in the workbook. When someone clicks on the text, then the actual report (such as c:\MyDocs\Q410.doc) is actually opened.
If you use a display value that is different from the full hyperlink address, then there is no way to put together a formula that will be active. If, however, you don't specify a display value, Excel will display the actual hyperlink address in the cell. If this is the case, then you can use the following formula in workbook B:
=HYPERLINK(INDIRECT("'[A.xls]Sheet1'!$C$3"))
This works because the INDIRECT function grabs the info displayed at Sheet1!C3 of workbook A, and then uses it as the address for the HYPERLINK function. Again, this only works if the info displayed at Sheet1!C3 of workbook A is an address, not a display value for a hyperlink.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9781) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Links to Hyperlinks.
Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!
Inserting a hyperlink into a workbook that is shared with others is not possible in Excel. Here's what you can do about it.
Discover MoreYou can store all sorts of information in a worksheet, including Web addresses. If you want to open those addresses in a ...
Discover MoreNeed to get rid of all the hyperlinks in a worksheet? It's easy when you use this single-line macro.
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments