Word.Tips.Net Welcome toWord.Tips.Net

Helpful Links

Tips.Net Home
WordTips Home

Ask a Word Question
Make a Comment

Tips.Net Store

WordTips FAQ
WordTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

Newest Tips

Arranging Document Windows

Specifying a Backup Location

Controlling Chart Gridlines

Merging Table Cells

Collapsing and Expanding Subdocuments

Zooming With the Keyboard

Initiating a New Search

 

Hyperlinks Not Found

Summary: When creating hyperlinks in a document, it is important to remember the difference between absolute and relative referencing. If you use the latter, you could end up with hyperlinks that are broken if the target of those links becomes unavailable for some reason. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)

When you insert hyperlinks into your Word documents, how you specify the URL in the hyperlink's field can affect how the hyperlink behaves in the future. Typically, if you are referencing a URL in your hyperlink, it is inserted in the format http:\\wordtips.VitalNews.com. This is called an absolute hyperlink, because it indicates exactly where the resource is located, regardless of the location of the document in which the hyperlink is created.

When you create hyperlinks to files, it is much more common to create relative hyperlinks instead of absolute ones. For instance, let's say you have two documents, named (appropriately enough) MyDoc1 and MyDoc2. If you are working in MyDoc1, and you want to include a hyperlink to the bookmark CoolPlace in MyDoc2, the field containing your hyperlink may end up looking like this:

{ HYPERLINK "MyDoc2.doc" \l "CoolPlace" }

This is a relative hyperlink, and in later resolving the link, Word assumes that MyDoc2 is located in the same disk folder as MyDoc1. If you end up separating MyDoc1 and MyDoc2 into different folders, you will get "Error! Bookmark not defined" instead of the expected hyperlink in MyDoc1.

A partial solution to this problem is to always use absolute references for files when setting up hyperlinks. For instance, the foregoing hyperlink would look like the following when it uses absolute references instead:

{ HYPERLINK "D:\SomePath\MyDoc2.doc" \l "CoolPlace" }

Now, if you move MyDoc1 into a different directory, Word can still find MyDoc2 and the hyperlink will still work as expected. Notice, however, that I said this was only a "partial solution." The reason is that you will still get an error if you move MyDoc2 to a different place than the noted directory. In that case, the only solution is to modify your hyperlinks so they point to the new absolute location of MyDoc2.

Tip #1751 applies to Microsoft Word versions: 97 | 2000 | 2002 | 2003 | 2007

Great Idea! Word is a tool to get what you really want—printed output. This means you need to make sure that Word works as well as possible with your printer, whether it is sitting on your desk or in a room down the hall.
 
Check out WordTips: Printing and Printers today!