View Single Post
Old 10-24-2012, 08:12 AM
Aston Aston is offline Windows 7 64bit Office 2007
Join Date: May 2011
Posts: 15
Aston is on a distinguished road
Default Has the problem with relative paths been resolved in Word 2010?

Hello everyone,

I've been asked at work to create a Word document (that will later be sent to a client) with hyperlinks to other documents similar to what is described in this thread. So I created a document with hyperlinks to other files on my local machine then I moved the document and the files to a network drive and, sure enough, the links stopped working as they still pointed to my local computer.

Having realized that there's no easy way to do it, I got down to writing a macro based on what macropod suggested. (macropod's macro didn't work for me out of the box even after filling out the missing parts as described in the code comments) And since I'm pretty lousy at VBA, I'm still struggling to make it work.

Now that the work day is over and I'm at home, I tried to recreate the problem on my home computer and hopefully continue working on my macro. But to my surprise, I don't have this problem on my home installation of Word.

I guess the difference is versions: Word 2007 at work and Word 2010 at home.

I created hyperlinks in Word 2010 and Word inserted them with relative paths by default (while at work, only absolute paths worked). I moved the document and the files to another drive on my home computer and the links still work. They point to the relative path. I checked the Field codes, and they ARE relative (unlike what I saw at work). And when you hover over them, they reflect the change of the drive location in the screen tip.

Now I'm really confused...
Reply With Quote