+ Reply to Thread
Results 1 to 6 of 6

VBA to create Hyperlink to sheet based on Cell value

  1. #1
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    VBA to create Hyperlink to sheet based on Cell value

    Hi,

    Recently I have a following case:

    I have a huge list of accounts (vertical list) in one worksheet and also have the huge number of worksheets in the same workbook.

    Each sheet has name which corresponds to the account list. for example:

    Column A
    11111
    22222
    33333
    44444

    and also have the sheets named with 11111, 22222, 33333, 44444

    What I need to generate in column B the hyperlink next to each account in column A its corresponding sheet.

    I assume it can be done only using VBA code.


    please support if possible.

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: VBA to create Hyperlink to sheet based on Cell value

    Hi G.Bregvaz
    Not necessarily with VBA. You can do this by simply going to insert menu and then clicking "link" button on the right of ribbon.
    Teach me Excel VBA

  3. #3
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: VBA to create Hyperlink to sheet based on Cell value

    The case is that I have a huge list of accounts and corresponding sheets, I will have to make insertion of links for each sheet and it will take a while.

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: VBA to create Hyperlink to sheet based on Cell value

    Try this

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: VBA to create Hyperlink to sheet based on Cell value

    Try this formula

    Assuming that 11111 is in column A cell A2 then the formula would be
    Please Login or Register  to view this content.
    Copy down to last entry

    See attachment
    Attached Files Attached Files
    If your original question was resolved, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.
    Click on the Add Reputation button (located at the lower-left corner of all post) for those who assisted you in solving your issue.

  6. #6
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: VBA to create Hyperlink to sheet based on Cell value

    Thanks a lot, worked perfectly

+ 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. [SOLVED] Macro to Create Hyperlink with Sheet Name/Cell Reference Message Box
    By yohanmcdonald in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-28-2017, 03:08 PM
  2. [SOLVED] Create Hyperlink to Sheet based on Cell Value
    By PJenkins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2017, 11:14 AM
  3. Auto create hyperlink based on 2 other cell values
    By verynewtovba in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2016, 05:57 AM
  4. Create Hyperlink To Worksheet Based On Cell Value
    By Rosco88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2014, 05:59 AM
  5. Create hyperlink paths based on cell contents
    By fundam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2013, 04:19 PM
  6. Replies: 0
    Last Post: 03-26-2013, 01:31 PM
  7. How to create a Web Hyperlink based on Cell Contents?
    By chatguy in forum Excel General
    Replies: 2
    Last Post: 10-15-2007, 04:24 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