Solved

excel 2010 hyperlinks breaking when moving file

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Move data from one sheet to another 11 31
Excel Formula 5 43
Remove duplicates using cell values VBA 2 29
Excel Spacing Anomaly 4 22
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

786 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