Solved

excel 2010 hyperlinks breaking when moving file

Posted on 2013-01-24
2
2,074 Views
Last Modified: 2016-10-04
I am having all kinds of trouble with keeping hyperlinks working.  Problem first noticed when I moved the file from one network directory to another.  Then, I was updating all the hyperlinks one by one to fix.  I got about halfway through, and now some work and some don't.  I have also messed around some with setting the File/Properties/hyperlink base setting.

I have also tried setting the hyperlink by navigating to the mapped network drive and also by setting using the longer full UNC path.

I just want to know - what is the secret to setting a hyperlink and making it continue to work - even if I move the file.  And, what path should I have in the File/Properties/hyperlink base setting?
0
Comment
Question by:timoteoga
2 Comments
 
LVL 14

Accepted Solution

by:
Faustulus earned 500 total points
ID: 38821901
There are absolute and relative hyperlink addresses. An absolute address contains the full information, a relative one only a part. If you provide only a part of the link's address the remainder can be provided by the Hyperlink Base property. For example, if the absolute path is D:\my workbook.xlsx you could enter myworkbook.xlsx as a relative address and set the Hyperlink Base property to D:\. Later, if you decide to move the file to drive F: you just change the Hyperlink Base property to point to F:\
If you create a hyperlink while the Hyperlink Base property is not set (it is blank by default) the new link will be absolute. But if you set the Hyperlink Base property to D:\ and then specify D:\my workbook.xlsx in the dialog box the hyperlink in the worksheet will point to my workbook.xlsx, dropping the part of the address that is specified in the Hyperlink Base. But if you specify F:\my workbook.xlsx while the Hyperlink Base property has D:\ the hyperlink in your worksheet will be faulty because of the discrepancy between the paths specified in the dialog box and the Hyperlink Base property. If you wanted to link to F:\ you would need to clear the Hyperlink Base property and create your link. Then set the Base property back to D:\ (or just D:) so that the existing hyperlink that has no drive letter points at D:\my workbook.xlsx again. The hyperlink pointing to F:\my workbook.xlsx would be unaffected by this change.
Since the other link points at my workbook.xlsx it would still work if the target workbook is open but it would fail if it is closed while the Hyperlink Base property isn't set or points to a path where the file can't be found.
It isn't complicated at all - once you know how it works. :-)
0
 

Expert Comment

by:Michael de Lange
ID: 41827862
Strangely whenever i create a hyperlink, and i change the Hyperlink Base property to Q: (were my .xslx is saved) it just won't work.
Neither does it work, when i change the hyperlink base to F: and i move the .xslx to F.
Somehow my hyperlinks stay broken every time i move the .xslx file, no matter how i change the Hyperlink Base.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question