Solved

excel 2010 hyperlinks breaking when moving file

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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 article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

771 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

11 Experts available now in Live!

Get 1:1 Help Now