Solved

Update Links

Posted on 2011-09-29
4
268 Views
Last Modified: 2012-05-12
Experts,

I have a word doc with many hyperlinks to other excel documents.
The path to those excel documents have changed.

How can I update all of the links?  

(I know I can hit control A then F9 to update links but that only works if the links paths have not chagned but in this case they have changed)

thanks
0
Comment
Question by:pdvsa
  • 2
4 Comments
 
LVL 7

Expert Comment

by:BusyMama
ID: 36816881
Typically, you right click on the hyperlink and choose Edit Hyperlink.

Then you can navigate to the correct location of the document and click OK once you find it.

Does that help, or are you asking for something more complex?
0
 

Author Comment

by:pdvsa
ID: 36817640
Yes, i was aware of that but i have so many links that i was loiking for a more efficient wat to do?
0
 
LVL 21

Accepted Solution

by:
EricFletcher earned 500 total points
ID: 36965243
Toggle the view to see the field codes instead of the results (Alt-F9), then use Find and Replace to change the path in the link. This works best if all of the paths are consistently changed -- as happens if you move everything to a different drive or folder. You can copy the path from one of your links so you can paste it into the Find What box; type the new path in the Replace With box using the same naming conventions (i.e. \\ instead of / for path separators, etc.)

For example, a typical link to a named range in one of my Excel files looks like this:
{ LINK Excel.Sheet.12 "D:\\My Documents\\Portfolio value.xlsx" "4 Aug 2011!summaryReport" \a \f 5 \h  \* MERGEFORMAT }

If I move the Excel document to a folder named "C:\Users\Eric\Documents\Finance\Current" the link field will need to become:
{ LINK Excel.Sheet.12 "C:\\Users\\Eric\\Documents\\Finance\\CurrentPortfolio value.xlsx" "4 Aug 2011!summaryReport" \a \f 5 \h  \* MERGEFORMAT }
Within Word, I would use the Find and Replace dialog with
Find what: D:\\My Documents\\
Replace with: C:\\Users\\Eric\\Documents\\Finance\\

Clicking Replace All would change the paths within all LINK fields. Alt-F9 toggles back to the results view, then Ctrl-A to select all and F9 to recalculate the links using the new paths.

If you have other field codes that may be using the same path and should not be changed, click Replace and Find Next in the dialog to skip ones that don't apply.

0
 

Author Closing Comment

by:pdvsa
ID: 36965376
Perfect!  Exactly what I was looking for.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

The Selection object is designed for user interaction. It has a Range property, so it can be used in most places that a Range object can. Recorded macros must use the Selection because they are simply copying what the user is doing. A Range prope…
A few years ago I was very much a beginner at VBA, and that very much remains the case today.  I'll do my best to explain things as I go in the hope that other beginners can follow.  If you just want to check out a tool that creates a Select Case fu…
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

777 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