Solved

excel 2010 hyperlinks breaking when moving file

Posted on 2013-01-24
2
1,864 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
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 in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now