Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to prevent the automatic creation of hyperlinks in Excel


View products that this article applies to.

Summary

When you type an entry in your worksheet that begins with any of the following prefixes, Microsoft Excel automatically creates a hyperlink:
  • http://
  • www.
  • ftp://
  • mailto:
  • file://
  • news:
  • \\
Excel also creates a hyperlink when you type an e-mail address in the following format:
user name@company name.com
Excel does not provide a built-in method to override this behavior. However, this article contains two methods that you can use to prevent Excel from automatically creating hyperlinks.

↑ Back to the top


More information

To prevent Excel from automatically creating a hyperlink, use one of the following methods.

Disable the AutoFormatting option

  1. On the Tools menu, click Autocorrect Options.
  2. On the Autoformat As You Type tab, click to clear the Internet and network paths with hyperlinks check box.
  3. Click OK.

    Note You can also gain access to the Autocorrect Options feature when you type a hyperlink and then click Stop Automatically Creating Hyperlinks on the smart tag button that appears.

Type an apostrophe at the beginning of the cell entry

You can type an apostrophe (') to prevent a hyperlink from being created when you make a cell entry. For example, Excel automatically creates a hyperlink when you type the following text in a cell:
http://support.microsoft.com
However, Excel does not automatically create a hyperlink when you type the following text:
'http://support.microsoft.com

↑ Back to the top


Keywords: KB291209, kbinfo, kbhowto

↑ Back to the top

Article Info
Article ID : 291209
Revision : 5
Created on : 1/31/2007
Published on : 1/31/2007
Exists online : False
Views : 333