Hyperlink does not work when pasted or imported

Support for Office 2003 has ended

Microsoft ended support for Office 2003 on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article was previously published under Q271856
This article has been archived. It is offered "as is" and will no longer be updated.
When you paste or import text that looks like a hyperlink into a cell, the hyperlink does not actually work but remains as a text entry. If you type the same text into a cell by using the keyboard, Microsoft Excel interprets the entry as an active hyperlink.
Microsoft Excel does not interpret these text values as hyperlinks unless they are typed from the keyboard.
To convert cells that contain valid hyperlink text in Excel to active hyperlinks, use one of the following methods.

Method 1: Edit the Hyperlink by Using the Keyboard

  1. Select a cell that contains a hyperlink that appears as text.
  2. Press F2 and then press ENTER.
  3. Repeat steps 1 and 2 for each cell, as needed.

Method 2: Use a Macro

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

For additional information about how to use the sample code in this article, click the following article number to view the article in the Microsoft Knowledge Base:
173707 OFF97: How to Run Sample Code from Knowledge Base Articles
173707 OFF97: How to Run Sample Code from Knowledge Base Articles
Sub HyperAdd()' ' Converts each text hyperlink selected into a working hyperlink'    For Each xCell In Selection        ActiveSheet.Hyperlinks.Add Anchor:=xCell, Address:=xCell.Formula    Next xCell'    'End Sub				
To see an example of this problem, follow these steps:
  1. Open Notepad and type the following text:
  2. Copy the text to the clipboard, and open or switch to Excel.
  3. Paste the text into Excel. Notice that the hyperlinks appear valid but are not active. When you click them, nothing happens.
  4. Use one of the methods in this article to convert the text to valid hyperlinks. Now when you click one of the links, the page opens in your browser.

Article ID: 271856 - Last Review: 12/05/2015 21:26:42 - Revision: 4.2

Microsoft Office Excel 2003, Microsoft Excel 2002 Standard Edition, Microsoft Excel 2000 Standard Edition, Microsoft Excel 5.0 Standard Edition, Microsoft Excel X for Mac, Microsoft Excel 98 for Macintosh, Microsoft Excel 97 Standard Edition

  • kbnosurvey kbarchive kbprb KB271856