Article ID: 310520 - View products that this article applies to.
This article was previously published under Q310520
Expand all | Collapse all

On This Page

SUMMARY

This article provides a step-by-step guide to creating a hyperlink in a Hypertext Markup Language (HTML) page to a bookmark in a Microsoft Word document.

A bookmark identifies a location or selection of text that you name and identify for future reference. A bookmark in a Word document can be used as a destination for a hyperlink in a Web page. When you click the hyperlink in the Web page, the Word document opens in your Web browser at the location that is specified by the bookmark.

Create a Bookmark in Your Word Document

To add a bookmark to a Word document, follow these steps:
  1. Start Word, and then open the document to which you want to add a bookmark.
  2. Select the item to which you want to assign a bookmark or click the location in your document where you want to insert a bookmark.
  3. On the Insert menu, click Bookmark.
  4. In the Bookmark_name box, type a name for the bookmark.

    Bookmark names must begin with a letter and can contain numbers. You cannot use spaces, but you can use the underscore character (_) to separate words.
  5. Click Add.

Show the Bookmarks in Your Word Document

  1. Start Word, and then open the document that contains the bookmarks that you want to display.
  2. On the Tools menu, click Options, and then click the View tab.
  3. Click to select the Bookmarks check box.

    If you assign a bookmark to an item, the bookmark is displayed as brackets in your document. If you assign a bookmark to a location, the bookmark is displayed as an I-beam.

Create a Hyperlink in a Web Page

Use any of the following methods to create a hyperlink that links to a bookmark in a Word document.

Method 1: Create the Hyperlink in Word

If you want to use Word as the HTML editor in which to create the hyperlink, follow these steps:
  1. Start Word, and then open the Web page in which you want to create a hyperlink. (Click Open on the File menu, locate the Web page, and then click Open.)
  2. Select the text or object in which you want to create a hyperlink or click the location on the page where you want to insert the hyperlink.
  3. On the Insert menu, click Hyperlink.
  4. Under Link to in the Insert Hyperlink dialog box that appears, click Existing File or Web Page.
  5. Locate and select the Word document that contains the bookmarks that you want to link to.

    The path and file name of Word document are displayed in the Address box.
  6. Click Bookmark.

    The bookmarks in the Word document that you selected in step 5 are listed in the Select Place in Document dialog box that appears.
  7. Click the bookmark that you want as the destination for your hyperlink, and then click OK.

    Note that Word appends #bookmark_name to the end of the path and file name that are displayed in the Address bar.
  8. In the Text to display box, type the text that you want to display for the hyperlink.
  9. If you want to modify the ScreenTip for your hyperlink, click ScreenTip, type the text that you want the ScreenTip to display, and then click OK.

    By default, Word uses the path to the file, including the bookmark name, as the ScreenTip.
  10. Click OK.
  11. Click Save on the File menu to save your Web page.
  12. Click Web Page Preview on the File menu to preview your Web page in a browser.

Method 2: Create the Hyperlink in Microsoft FrontPage

If you want to use FrontPage as the HTML editor in which to create the hyperlink, follow these steps:
  1. Start FrontPage, and then open the Web page in which you want to create a hyperlink. (Click Open on the File menu, locate the Web page, and then click Open.)
  2. In Page view, do one of the following:
    • Type the text that you want to use as a hyperlink, and then select it.

      -or-
    • Position the insertion point where you want to insert the hyperlink, if you want to use the location as the hyperlink text. For example, you can use a hyperlink text in the following form:
      file://computer_name/share/file name>
  3. On the Insert menu, click Hyperlink.
  4. Proceed to one of the following two methods, as appropriate to your version of FrontPage.

    Microsoft FrontPage 2000

    1. Click the Make a hyperlink to a file on your computer button that is to the right of the URL box.
    2. In the Select File dialog box, locate and then click the Word document that you want, and then click OK.
    3. Right-click the hyperlink, and then click Hyperlink Properties.

      The path and file name of the Word document is displayed in the URL box.
    4. Position the insertion point at the end of the path and filename that is displayed in the URL box, and then type the following line:
      #bookmark_name
      where bookmark_name is the name of the bookmark in the Word document to which you want to link.

      Make sure there is no space between the end of the file name and the bookmark name, for example:
      file://computer_name/share/file_name.doc#bookmark_name
    5. Click OK.
    6. Click Save on the File menu to save your Web page.
    7. Click Preview in Browser on the File menu to preview your Web page in a browser.

    Microsoft FrontPage 2002

    1. Under Link to in the Insert Hyperlink dialog box that appears, click Existing File or Web Page.
    2. Locate and select the Word document that contains the bookmarks to which you want to link.

      The path and file name of Word document are displayed in the Address box.
    3. Position the insertion point at the end of the path and file name that is displayed in the Address bar, and then type the following line:
      #bookmark_name
      where bookmark_name is the name of the bookmark in the Word document to which you want to link.

      Make sure there is no space between the end of the file name and the bookmark name, for example:
      file://computer_name/share/file_name.doc#bookmark_name
    4. If you want to modify the text that you want to display for the hyperlink, type the text that you want in the Text to display box.
    5. If you want to add a ScreenTip to the hyperlink, click ScreenTip, then type the text that you want the ScreenTip to display, and then click OK.
    6. Click OK.
    7. Click Save on the File menu to save your Web page.
    8. Click Preview in Browser on the File menu to preview your Web page in a browser.

Method 3: Create the Hyperlink in Another HTML Editor

If you use an HTML editor other than Word or FrontPage, create the hyperlink, and then type the following line at the end of the path and file name of the Word document to which your hyperlink points:
#bookmark_name
where bookmark_name is the name of the bookmark in the Word document to which you want to link.

Make sure that there is no space between the end of the file name and the bookmark name.

For example, the hyperlink in your Web page may be represented in HTML as follows
<a href="file://<I BRACKET="YES">computer_name</I>/<I BRACKET="YES">share</I>/<I BRACKET="YES">file_name.doc</I>#<I BRACKET="YES">bookmark_name</I>">My Hyperlink</a>
				
where file://computer_name/share/file_name.doc is the path and file name of the Word document, and bookmark_name is the name of the bookmark in the Word document to which you want to link.

Troubleshooting

With Word 2000, your browser may not display the Word document correctly when you click a hyperlink on a Web page that points to a bookmark. For additional information about this issue, click the article numbers below to view the articles in the Microsoft Knowledge Base:
211222 WD2000: Hyperlink to Bookmark in Word Document Fails Using Browser
224672 WD2000: Hyperlink to Anchor or Bookmark Goes to Top of Document

REFERENCES

For additional information about working with hyperlinks in Word 2000, click the article number below to view the article in the Microsoft Knowledge Base:
211955 WD2000: General Information About Hyperlinks in Word
For additional information about working with hyperlinks in Word 2002, click the article number below to view the article in the Microsoft Knowledge Base:
291182 WD2002: General Information About Hyperlinks in Word

Properties

Article ID: 310520 - Last Review: July 9, 2012 - Revision: 4.0
APPLIES TO
  • Microsoft Word 2002
  • Microsoft Word 2000
Keywords: 
kbhowtomaster KB310520

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com