+ Reply to Thread
Results 1 to 8 of 8

Copy hyperlink values to new cell

  1. #1
    Registered User
    Join Date
    10-14-2009
    Location
    Boston, MA USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Exclamation Copy hyperlink values to new cell

    I have a long series of cells that are hyperlinked. The text displayed in the cell is NOT the hyperlink. Is there any way to paste the value of the hyperlink into another cell? Is there a function or macro that can extract the hyperlink and place it in a new cell?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copy hyperlink values to new cell

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-14-2009
    Location
    Boston, MA USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Copy hyperlink values to new cell

    I have attached a sample data workbook. The domains and email addresses are for sample purposes only, and do not represent real data.

    The hyperlink does not have any common structure other than the domain, the code after .com is unique to each record.

    Your help is greatly appreciated.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copy hyperlink values to new cell

    You can use a simple user defined function..

    Here is one gotten from here: http://www.ozgrid.com/VBA/HyperlinkAddress.htm



    Please Login or Register  to view this content.
    To use it, Hit Alt+F11 to go to VB editor..

    Go to Insert|Module and paste above code...

    Back in your worksheet, enter formula: =GetAddress(A3) and copy down..
    Last edited by NBVC; 10-15-2009 at 09:58 PM.

  5. #5
    Registered User
    Join Date
    11-14-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Copy hyperlink values to new cell

    Dear NBVC
    this is datta form Hyderabad
    i want to copy hyper link to other cell (form column A to Column C) how can i i have 10250 Rows to copy like this pls help on this

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy hyperlink values to new cell

    Datta,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  7. #7
    Registered User
    Join Date
    07-18-2015
    Location
    pretoria south africa
    MS-Off Ver
    win 7
    Posts
    1

    Re: Copy hyperlink values to new cell

    Hyperlinks in sheet 1 a1:a10
    all 10 hyperlinks target sheet 2 a1
    if any hyperlink in sheet 1 are selected
    data of that cell to be written into sheet 2 a1
    sheet 1 a1 = aa then sheet 2 a1 = aa
    sheet 1 a2 = bb then sheet 2 a1 = bb
    and so on

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Copy hyperlink values to new cell

    Welcome to the forum. Unfortunately you have posted a question in someone else's thread. This is called "hijacking" and is against the rules.

    Your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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