+ Reply to Thread
Results 1 to 4 of 4

Making cell show hyperlink address instead of cell value

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Frankfurt, Germany
    MS-Off Ver
    Excel 2010
    Posts
    10

    Unhappy Making cell show hyperlink address instead of cell value

    Hey guys,

    I have a range of 400 cells in column D which have values and hyperlinks embedded in the cells. I want the cell to show the actual hyperlink address instead of the cell value. I tried using the following macro code but it does not work. Anyone has any idea???

    Sub Macro1()
    '
    ' Macro1 Macro
    '
    ' Keyboard Shortcut: Ctrl+j
    '
    Range("D2:D498").Select
    Selection.Hyperlinks(1).TextToDisplay = ""
    End Sub

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Making cell show hyperlink address instead of cell value

    Hi

    Upload a sample data file.
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Registered User
    Join Date
    09-21-2012
    Location
    Frankfurt, Germany
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Making cell show hyperlink address instead of cell value

    Hi,

    In the sample excel, the value in cell A1 is jack. But the embedded hyperlink is www.google.com I want cell A1 to show www.google.com. Now for one cell it is very easy as you simply have to right click, edit hyperlink and delete the value in text to display. I tried doing this and recording a macro and then running it to the range A1:A500 but it does not work.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Making cell show hyperlink address instead of cell value

    Try this macro:


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1