change hyperlinks from relative to absolute

N

Nikki

Hi,

I have a table in excel that has 104 hyperlinks (all to different folders
with in shared network drives)

The links all worked fine until the original spreadsheet was moved to a new
location and now they don't.

I have figure out this is because they are relative links so was wondering
if there is an easy way to change them all to absolute links without redoing
them all.

I have come across a lot of people suggesting the =hyperlink formula but
that would still require retyping each one individually.

Any help would be great appreciated.

Regards
 
D

Dave Peterson

A few people have said that this has stopped the problem from reoccurring.

In xl2003 menus:
File|Properties|Summary Tab|Hyperlink Base
change it to C:\
(something that's always available)

In xl2007:
Click on the Office button
Choose Prepare, then properties.
Then use the arrow on the Document Properties dropdown
Choose Advanced Properties
And then change the hyperlink base on the Summary tab.



I like to use the =hyperlink() worksheet function. It has never failed me this
way:

=hyperlink("file:////yourpathtothe/something.xxx","Click me")

You can even put the path in a dedicated cell and the filename in another.

=hyperlink("file:////" & $a$1 & A2,"Click me")

==============
If you have to change lots and lots and lots back...

You could use the code from David McRitchie's site:

http://www.mvps.org/dmcritchie/excel/buildtoc.htm
look for:
Fix Hyperlinks (#FixHyperlinks)

If you're new to macros:

Debra Dalgleish has some notes how to implement macros here:
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top