+ Reply to Thread
Results 1 to 4 of 4

Linking to sheets Macro

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    62

    Linking to sheets Macro

    I have an excel worsheet with a bunch of sheets with different names

    I want a macro that creates a new sheet with links to all the other sheets, the link should be the name of the other sheets.
    Last edited by Tmc2159; 06-12-2013 at 09:56 AM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Linking to sheets Macro

    Try this macro when the sheet on which you want the hyperlinks to appear is the one which is active.

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010.
    Martin

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Linking to sheets Macro

    Thanks mrice

    Only problem is that when I click on one of the links it tells me :

    reference is not valid.

    Note that i added a small bit to the code so that it would create a new sheet in the front.

    Note that my first sheet was calledstage1

    Please Login or Register  to view this content.
    Last edited by arlu1201; 06-12-2013 at 10:35 AM. Reason: Use code tags in future.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Linking to sheets Macro

    Just to mention that

    Please Login or Register  to view this content.
    is more robust in the case where there are spaces in the names of the sheets.

+ 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