+ Reply to Thread
Results 1 to 10 of 10

Need A Lot of Hyperlinks To Internal Worksheets

  1. #1
    Registered User
    Join Date
    07-22-2006
    Posts
    12

    Need A Lot of Hyperlinks To Internal Worksheets

    On sheet 1 of my workbook Column A contains 400+ unique values. Each of these values has a worksheet within the workbook that shares the same name.

    For example, cell A2 on Sheet1 could be called 'Tiger' and cell A3 could be called 'Bear'. I need to create a hyperlink for each 'Tiger' and 'Bear' to cell A1 of a worksheet of the same name.

    I understand how to create add a hyperlink on a cell by cell basis. I am hoping that there is a more efficient way to complete this task. Is is possible?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Need A Lot of Hyperlinks To Internal Worksheets

    In A2 cell
    sheet2

    In B2 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag it down.....


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    07-22-2006
    Posts
    12

    Re: Need A Lot of Hyperlinks To Internal Worksheets

    Thank you for the reply. Is there now a way to remove the formula, but maintain the hyperlink? I would really prefer to not have 2 columns of data.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Need A Lot of Hyperlinks To Internal Worksheets

    May be you should go for VBA code solution

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Need A Lot of Hyperlinks To Internal Worksheets

    • Select the workbook you want to contain the macro
    • ALT+F11...to open the VBA editor
    • Insert.Module

    • Copy the below code and paste it into that module:
    Please Login or Register  to view this content.
    • Select the range of cells you want converted to hyperlinks
    • ALT+F8...to see the list of available macros
    ...Select: ConvcertTxt2Hyperlinks()
    ...Click: Run

    Assuming each cell contains the name of a worksheet,
    each selected cell will now contain a hyperlink to cell A1 of the referenced sheet.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  6. #6
    Registered User
    Join Date
    07-22-2006
    Posts
    12

    Re: Need A Lot of Hyperlinks To Internal Worksheets

    Thank you for the response. The code did put a hyperlink in all cells. However, they do not work; "Cannot open the specified file". While placing the cursor over the link it shows the file path correctly, but does not show the file name like it does if I were to do it manually. It appears to be attempting to open a workbook with that cell's name instead of a worksheet.

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Need A Lot of Hyperlinks To Internal Worksheets

    I assumed, perhaps wrongly, that all of the tabs were in the workbook that contains the links. If they are in other workbooks, different code is necessary. Can you post some samples of actual cell contents?

  8. #8
    Registered User
    Join Date
    07-22-2006
    Posts
    12

    Re: Need A Lot of Hyperlinks To Internal Worksheets

    You did not assume incorrectly. All sheets are contained with the same worksheet. I am going to PM you the link to the worksheet. The first sheet is the one that need the hyperlinks (Column A) to the corresponding sheet within the workbook.

  9. #9
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Need A Lot of Hyperlinks To Internal Worksheets

    I'm sorry....I posted the wrong vba code!
    This is what I intended to post:
    Please Login or Register  to view this content.
    Does that work better?

    Note: You'll probably need to change the Hyperlink Style to make the font color a bit easier on the eyes.

  10. #10
    Registered User
    Join Date
    07-22-2006
    Posts
    12

    Re: Need A Lot of Hyperlinks To Internal Worksheets

    Perfect!! Thank you very much for your help!!

+ 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