transferring hyperlinks across cells
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: transferring hyperlinks across cells

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I have a document list on one worksheet which are hyperlinked. (150 docs)
    I have another worksheet using formula to extract these documents into a shorter list but the hyperlink is not brought across, only the text.
    Is there a piece of code,formula or format command to make the hyperlink copy across.

  2. #2
    MrExcel MVP Damon Ostrander's Avatar
    Join Date
    Feb 2002
    Location
    Denver, Colorado USA
    Posts
    4,240
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Hi Jonnyw74,

    Hyperlinks cannot be set by formulas or worksheet functions. There is a HYPERLINK worksheet function that enables following a hyperlink, but I do not believe this is what you want. Fortunately, it is quite easy to copy hyperlinks in VBA. The following line of code will copy a hyperlink from one cell to another. In this case from cell B4 on Sheet1 to cell A2 on Sheet2.

    Sheet2.Hyperlinks.Add Sheet2.[a2], Sheet1.[b4].Hyperlinks(1).Address

    If this example is not specific enough to your problem feel free to follow up.
    Keep Excelling.

    Damon

    VBAexpert Excel Consulting
    LinkedIn Profile http://www.linkedin.com/pub/damon-ostrander/7/79/a93
    AllExperts Profile http://www.allexperts.com/ep/1059-30...-Ostrander.htm

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com