Excel Help Please - Hyperlink location

Soldato
Joined
9 Jul 2005
Posts
2,646
Location
High Wycombe
Hi all,

need some help (Excel) if possible. I have a large excel document which has loads of hyperlinks to files (emails) in it - now I need to move all the emails to a different drive. Is there any way to change all the hyperlink destination in one go or do I have to edit each one individually.

Cheers
 
As far as I'm aware your going to have to do this individually as you cannot open the details for multiple hyperlinks at the same time.
 
Darn it - thats going to take forever, there must be a way of telling excel to search in a differenty directory for all hyperlinks, especially as the filename has stayed the same - I remember doing something where the link was broken and it remade the links automatically.
 
I remember doing something where the link was broken and it remade the links automatically.
That's how I thought it worked. Something about rescanning for external links.

Copy your document to a different location and move a couple email message and see if it just works.

I'll scratch around the Microsoft KB to see if I can find anything.
 
Thanks, I've tried moving all the documents to another location, and it just came up with the message that it could not open the file/link.

I've searched the web and there are loads os requests for this function, but I cant make head nor tail of the answers ie macros, tables etc - I would have thought this was a common problem with a smiple solution - I just cant find it.
 
Which version of Excel are you using, BTW?


edit: ahh, I see. It only works if you have External Source data imbedded. Just hyperlinks won't automatically update.
 
Last edited:
You might be able to use find and replace, finding the old path and replacing with the new path. Not sure if it works on hyperlinks though.
 
Now all sorted, ended up finding a macro and adapting it, for those who are interested in "global" or "mass" hyperlink changes (thats for others search processes, it was as follows:

Sub ReplacePartHyperlinkAddress()
Dim hLink As Hyperlink
Dim wSheet As Worksheet

For Each wSheet In Worksheets
For Each hLink In wSheet.Hyperlinks
hLink.Address = Replace(hLink.Address, "c:\", "d:\")
Next hLink
Next wSheet
End Sub


Hope that helps someone else.
 
Back
Top Bottom