Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Disable Auto Hyperlink: 3 Ways to Turn It Off

· 6 min read · Home Tech

In this article
  1. Why Excel Creates Hyperlinks Automatically
  2. Turn Off Auto Hyperlink for the Entire Application
  3. Stop Auto Hyperlink for a Single Cell or Entry
  4. Remove Existing Hyperlinks from a Range
  5. Use VBA to Disable Auto Hyperlink for a Workbook
  6. Common Problems and Misconceptions
  7. How to Keep Hyperlinks but Stop the Click Behavior
  8. Frequently Asked Questions

Excel automatically turns typed email addresses and URLs into clickable hyperlinks, which can be annoying when you are entering data. You can disable this behavior permanently in Excel Options, or use a keyboard shortcut and paste options to stop it for a single entry. This article explains all the methods, how to remove existing hyperlinks, and answers common questions.

Excel’s AutoFormat feature detects text that looks like a web address (e.g., www.example.com), an email address (e.g., name@example.com), or a UNC path (e.g., \\server\share) and converts it into a clickable hyperlink. This is part of the AutoCorrect options, specifically the “Internet and network paths with hyperlinks” setting. It applies to cells as you type and also when Excel opens files that contain plain-text URLs.

This behavior is on by default in all desktop versions of Excel (Microsoft 365, Excel 2019, 2016, and earlier) and in Excel for the web. It is designed to save you the step of manually inserting a link, but it often gets in the way when you are building lists, entering sample data, or working with text that happens to contain a period followed by a slash.

The most reliable way to stop Excel from creating hyperlinks is to disable the AutoFormat option. This setting applies to all workbooks you open on that computer.

  1. Click the File tab, then select Options.
  2. In the Excel Options dialog, click Proofing in the left sidebar.
  3. Click the AutoCorrect Options button.
  4. In the new dialog, switch to the AutoFormat As You Type tab.
  5. Uncheck “Internet and network paths with hyperlinks”.
  6. Click OK on both dialogs.

This setting is global—it affects every workbook you open on that machine. It does not remove hyperlinks that already exist in your data; it only stops new ones from being created.

Stop Auto Hyperlink for a Single Cell or Entry

If you only want to prevent one or two entries from becoming links, you have two quick options:

  • Undo the link: After you type the text and press Enter, Excel creates the hyperlink. Press Ctrl+Z immediately to undo the formatting. The text stays in the cell, but the link is removed.
  • Use a leading apostrophe: Type an apostrophe (') before the text. For example, type 'www.example.com. The apostrophe is not displayed, and Excel treats the entire entry as plain text. This works for any cell entry, but it is tedious if you have many entries.
  • Paste as text: If you are copying a list of URLs from a browser or another document, use Paste Special > Values (or Text) instead of the default paste. This pastes the content as plain text without triggering hyperlink detection.

These methods are ideal when you rarely need to enter URLs and do not want to change the global setting.

If you already have a sheet full of hyperlinks that you want to convert to plain text, you can remove them all at once:

  1. Select the cells that contain hyperlinks. To select the entire sheet, click the small triangle at the top-left corner (where the row and column headers meet).
  2. Right-click anywhere on the selected cells and choose Remove Hyperlinks from the context menu.
  3. Excel removes the hyperlink formatting, leaving the visible text unchanged.

This method works in Excel 2010 and later. In older versions, you might need to use the Clear > Clear Hyperlinks option on the Home tab.

If you want to disable auto hyperlinks for a specific workbook without changing the global Excel setting, you can use a small VBA macro. This is useful when you share a workbook with colleagues but do not want to alter their Excel options.

  1. Press Alt+F11 to open the VBA editor.
  2. In the Project Explorer, double-click ThisWorkbook.
  3. Paste the following code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    Target.Hyperlinks.Delete
End Sub

This event fires whenever a cell changes, and it deletes any hyperlink that Excel automatically creates. Note that it also deletes hyperlinks you intentionally insert via the Insert > Link command, so use it only if you do not need any hyperlinks in that workbook.

Common Problems and Misconceptions

One common misconception is that disabling the AutoFormat option also removes existing hyperlinks—it does not. Another is that the setting is per-sheet; it is actually global to the application. If you are using Excel for the web, the AutoCorrect Options dialog is not available; you can only use the apostrophe trick or paste as text.

Another issue: if you have already typed a long list of URLs and want to convert them all, the “Remove Hyperlinks” command works, but it does not change the cell format to text. That is fine for most purposes, but if you later re-type or edit the cell, Excel might try to re-link it. To avoid that, you can format the cells as Text before typing (Home > Number Format > Text), or use the apostrophe method.

Sometimes you want the URL to remain visible as a link, but you do not want to accidentally click it while selecting cells. You can disable the “follow hyperlink” behavior by holding Ctrl when you click—Excel only opens the link when you Ctrl+Click. If you want to stop the Ctrl+Click behavior entirely, you can use a VBA macro that cancels the follow event:

Private Sub Workbook_SheetFollowHyperlink(ByVal Sh As Object, ByVal Target As Hyperlink)
    Cancel = True
End Sub

This prevents the link from opening, but the cell still looks like a hyperlink. You can then edit the cell without accidentally launching your browser.

Frequently Asked Questions

Why does Excel keep making hyperlinks even after I disabled the option?

If you disabled the AutoFormat option but Excel still creates links, check that you are not using a template or add-in that overrides the setting. Also, if you are using Excel for the web, the AutoCorrect Options dialog is not available; you must use the apostrophe trick or paste as text. Additionally, if you are typing a URL that contains a space, Excel may not detect it as a link, but if you type it without spaces, it will still convert it.

Can I turn off auto hyperlink for only one worksheet?

No, the AutoFormat setting is application-wide. However, you can use the VBA Workbook_SheetChange macro that only applies to the workbook where the code resides. That gives you per-workbook control, but not per-sheet control unless you add a condition to check the sheet name.

How do I type an email address without it becoming a link?

Type an apostrophe before the address, like 'user@example.com. The apostrophe will not show in the cell. Alternatively, format the cell as Text before typing (Home > Number Format > Text).

Does disabling auto hyperlink affect existing hyperlinks?

No. The setting only prevents new hyperlinks from being created. Existing hyperlinks remain clickable until you remove them manually or use the Remove Hyperlinks command.

Is there a keyboard shortcut to remove a hyperlink from a cell?

There is no dedicated shortcut, but you can press Ctrl+Z immediately after Excel creates the link to undo it. For a cell that already has a link, right-click and choose Remove Hyperlinks, or use the VBA macro to delete all hyperlinks in a selection.