OFF98: Cannot Use Pound Character in File Name for a Hyperlink (186921)



The information in this article applies to:

  • Microsoft Word 98 Macintosh Edition
  • Microsoft Excel 98 Macintosh Edition
  • Microsoft PowerPoint 98 Macintosh Edition

This article was previously published under Q186921

SYMPTOMS

When you create a hyperlink in Microsoft Excel 98 Macintosh Edition or Microsoft Word 98 Macintosh Edition to another file, the following problems may occur:
  • The file name may include %23 in the "Link to file or URL" box in the Insert Hyperlink dialog box. -and-

  • The hyperlink is displayed incorrectly in your document.

    For example, it has a dash (-) in the text of the hyperlink. -and-

  • When you click the hyperlink, you may receive the following error message:
    Cannot open the specified file
NOTE: Microsoft PowerPoint 98 Macintosh Edition may also display %23 in the "Link to file or URL" box. However, the hyperlink works without causing an error message to appear. If you redisplay the Insert Hyperlink dialog box for the hyperlink, the correct path is displayed in the "Link to file or URL" box.

CAUSE

These problems occur when the name of file to which you are linking contains a pound sign (#). These characters are automatically replaced.

NOTE: You see the error message in Microsoft Word only if the "Use relative path for hyperlink" check box is selected in the Insert Hyperlink dialog box.

WORKAROUND

To work around this problem, rename the file with a name that does not include the pound sign, and then recreate the hyperlink.

For more information about how to rename a file on your Macintosh, see your Macintosh printed documentation or online Help.

To delete and re-create the hyperlink in your Word or Excel document, follow these steps:
  1. Open the document that contains the link and select the problem hyperlink.
  2. Press the DELETE key.
  3. To create a new hyperlink, click Hyperlink on the Insert menu.
  4. Click Select next to the "Link to file or URL" box. Click the Select button, locate the file to which you want to create the hyperlink, and click OK.
  5. Click OK.

STATUS

This behavior is by design of the Microsoft products listed above.

MORE INFORMATION

In Microsoft Excel, A hyperlink to a file with the following path

<Hard disk>:test#1

appears as follows in the "Link to file or URL" box:

<Hard disk>:test%231

The hyperlink appears as follows in the document (assuming you have not specified a friendly name for the hyperlink and you have selected the "Use relative path for hyperlink" check box):

test-1

When you click this hyperlink, you receive the following error message:
Cannot open the specified file
For additional information, please see the following articles in the Microsoft Knowledge Base:

185360 OFF98: Spaces in Hyperlinks Replaced with String "%20"

179329 XL98: "Cannot Open Specified File" Clicking Hyperlink

REFERENCES

For more information about creating hyperlinks, click Contents And Index on the Excel Help menu (or on the Balloon Help menu if you are using a version of the Macintosh operating system earlier than 8.0), click the Index button in Microsoft Excel Help, and type the following text

hyperlinks, creating and deleting

and then click Show Topics. Select the "Create a hyperlink" topic, and click Go To. If you are unable to find the information you need, ask the Office Assistant.

Modification Type:MajorLast Reviewed:10/4/2002
Keywords:kbbug kbweb KB186921