+ Reply to Thread
Results 1 to 3 of 3

Extracting http:// address from text hyperlinks

  1. #1
    Registered User
    Join Date
    10-24-2007
    Posts
    1

    Extracting http:// address from text hyperlinks

    Hello everyone,

    I'm working on a huge report and need to convert text links to actual http:// addresses.

    My painful and manual process has me:
    -right clicking cell with hyperlink text
    -Select Edit Hyperlink
    -Copy http:// link from address bar
    -Exiting prompt
    -Pasting address into cell and moving on again

    If you know of an amazing shortcut, I would love to hear it.

    Needed end result:
    Hyper Link Text of Website --> www.hyperlinktextofwebsite.com
    Thanks in advance for your help!

    Gabriel

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi Gdelrio3,

    You can try this for a "quick" fix:

    If your text hyperlink addresses are in column A (A1 downward), then in B1 put the formula:

    =HYPERLINK(A1,A1)

    Fill that down as many rows as you need. You can then copy column B and PasteSpecial->Values over column A. Then you can delete column B.

    You could also use VBA to update the cells in-place (not using a helper column). The code example below does just that (assumes text links are in column A & code attached to the worksheet):
    Please Login or Register  to view this content.
    Last edited by Paul; 10-24-2007 at 08:44 PM.

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by Gdelrio3
    Hello everyone,

    I'm working on a huge report and need to convert text links to actual http:// addresses.

    My painful and manual process has me:
    -right clicking cell with hyperlink text
    -Select Edit Hyperlink
    -Copy http:// link from address bar
    -Exiting prompt
    -Pasting address into cell and moving on again

    If you know of an amazing shortcut, I would love to hear it.

    Needed end result:
    Hyper Link Text of Website --> www.hyperlinktextofwebsite.com
    Thanks in advance for your help!

    Gabriel
    Double click the cell which contains text and press Enter, if it turns text into hyperlink then following tip should work.

    Press Ctrl+H
    Find what: www
    Replace with: http://www
    and press Replace All

+ 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