+ Reply to Thread
Results 1 to 7 of 7

Need help creating a list of hyperlinks that link to every 61 rows

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-09-2013
    Location
    California, USA
    MS-Off Ver
    MS 365 Subscription
    Posts
    130

    Need help creating a list of hyperlinks that link to every 61 rows

    For example, I have descriptions in C1:C10. I would like to turn these into hyperlinks that link to every 61 rows on the same sheet.

    Example:
    C1 links to A61
    C2 links to A122
    C3 links to A183
    and so on...

    Is this possible?

    Thank you

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Need help creating a list of hyperlinks that link to every 61 rows

    How about this pasqualebaldi?
    Sub linkage()
    Dim ws As Worksheet
    Dim i As Long
    Set ws = Worksheets("Sheet2") 'change to correct sheet name
    For i = 1 To 10
        ws.Hyperlinks.Add Anchor:=ws.Range("C" & i), Address:="" & ws.Range("A" & i * 61).Text & ""
    Next i
    End Sub
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Contributor
    Join Date
    09-09-2013
    Location
    California, USA
    MS-Off Ver
    MS 365 Subscription
    Posts
    130

    Re: Need help creating a list of hyperlinks that link to every 61 rows

    I was doing a little more research and I might be able to incorporate a hyperlink match function. I've never used one before, so if I cant get it to work, then I will definitely go with this macro.

    This is my function so far, but it is not working.

    =HYPERLINK("#"&"Sheet2!" & ADDRESS(MATCH(Sheet1!C8,'Sheet2'!B:B),2), Sheet1!C8 )
    On Sheet2 I'm trying to look up a list on Sheet1 and if any value in Sheet2 column B matches, then link to that match.

    What am I doing wrong?

  4. #4
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Need help creating a list of hyperlinks that link to every 61 rows

    Sub MakeHypers()
    Dim i As Integer
    Dim r As Long
    Dim vTxt, vSht, vAddr
    
    vSht = ActiveSheet.Name
    For i = 1 To 10
       r = r + 61
       vTxt = Range("C" & i).Value
       If vTxt = "" Then vTxt = "Link"
       vAddr = vSht & "!" & "A" & r
       ActiveSheet.Hyperlinks.Add Anchor:=Range("C" & i), Address:="", SubAddress:=vAddr, TextToDisplay:=vTxt
    Next
    End Sub

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Need help creating a list of hyperlinks that link to every 61 rows

    Oh haha, my bad, you wanted to link TO the cells, not use their content...

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,352

    Re: Need help creating a list of hyperlinks that link to every 61 rows

    Try this ... replace BOOK! with your workbook name


    =HYPERLINK("[Book1]Sheet2!" & ADDRESS(MATCH(Sheet1!B8,Sheet2!B:B,0),2,2,1))

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need help creating a list of hyperlinks that link to every 61 rows

    Enter this formula in D1 and copy down as needed:

    =HYPERLINK("#A"&ROWS(D$1:D1)*61,"Go")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating bookmarks/hyperlinks to rows and columns
    By ravicse in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-06-2014, 09:01 AM
  2. Replies: 1
    Last Post: 08-27-2012, 04:14 AM
  3. [SOLVED] Creating a list of hyperlinks
    By ATLGator in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2012, 05:44 PM
  4. Creating hyperlinks from Data Validation list to other sheets within xls
    By dpcp in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-29-2012, 12:39 PM
  5. Creating a List of Hyperlinks
    By jkr4250 in forum Excel General
    Replies: 0
    Last Post: 09-08-2011, 11:35 AM
  6. Excel 2007 : Creating a list of Hyperlinks
    By Nigel999 in forum Excel General
    Replies: 1
    Last Post: 07-28-2009, 08:57 PM
  7. Creating Text Hyperlinks - why does my link icon gray out?
    By Carophilly in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2007, 08:44 PM

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