+ Reply to Thread
Results 1 to 9 of 9

Cell that you can type in a sheet number to take you to that sheet

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    Wolverhampton, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Cell that you can type in a sheet number to take you to that sheet

    How do I make a cell on a spreadsheet take me to the named sheet. I.E. I have a workbook with 100+ worksheets named numerically and want a cell within each individual sheet where I type another sheet' number that takes me to that sheet?

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Cell that you can type in a sheet number to take you to that sheet

    Try this.....
    Place the following code on ThisWorkbook Module and as per the code if you input a number in cell A1 of any sheet, the relevant sheet as per the number entered would be activated.

    Please Login or Register  to view this content.
    For details, refer to the attached.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    08-29-2013
    Location
    Wolverhampton, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Cell that you can type in a sheet number to take you to that sheet

    Can I get this module to work alongside I already have running on the said workbook

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Cell that you can type in a sheet number to take you to that sheet

    Do you mean you already have a code on ThisWorkbook Module? If yes, which event is being triggered?

    Remember you can have only one occurrence of specific event on Sheet or ThisWorkbook Module. And if you already have a code for Workbook_SheetChange, you will need to incorporate the proposed code in the existing code.
    And if there is no code for Workbook_SheetChange on ThisWorkbook Module, you can just copy the proposed code into that module and it will work fine.

  5. #5
    Registered User
    Join Date
    08-29-2013
    Location
    Wolverhampton, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Cell that you can type in a sheet number to take you to that sheet

    I am not as advanced in Excel as you may think - I cannot get the code to work in my workbook or understand how I make a particular cell the active cell for typing the desired sheet number?

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Cell that you can type in a sheet number to take you to that sheet

    Change it here...
    If Target.Address(0, 0) = "A1" Then

  7. #7
    Registered User
    Join Date
    08-29-2013
    Location
    Wolverhampton, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Cell that you can type in a sheet number to take you to that sheet

    Thank you once again for your quick reply - Once I copy the code onto the module within Developer how do I run it and do I have to change anything within Excel to allow it to run?

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Cell that you can type in a sheet number to take you to that sheet

    You need to place this code on ThisWorkbook Module.
    And once the code is there, you don't need to do anything to run the code. It's a change event code so that when you input a number in the cell A1 (maybe different in your code), the code will be triggered automatically and the relevant sheet will be activated if the sheet with than name exists in the workbook.
    For more details, you may see the code in the file I uploaded in post#2.

  9. #9
    Registered User
    Join Date
    08-29-2013
    Location
    Wolverhampton, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Cell that you can type in a sheet number to take you to that sheet

    I am still at a loss?? My workbook is not called ThisWorkbook Module and I don't know how to enter the code into the workbook I am using or get to anything remotely like ThisWorkbook Module within my workbook.

+ 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. Replies: 1
    Last Post: 08-27-2016, 03:34 PM
  2. [SOLVED] Run vba code, try to type on active sheet, it puts on different sheet
    By cheeze83 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2014, 09:51 AM
  3. [SOLVED] User inputs number on sheet 1 and multiple cells (from sheet 2) are shown on sheet 3
    By rimshot609 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-31-2014, 12:54 AM
  4. [SOLVED] Return comment to master sheet after matching to source sheet name and cell number
    By jeffreybrown in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2012, 05:09 PM
  5. [SOLVED] search for string in another sheet, get cell number and put cells in first sheet
    By 2k05gt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2011, 01:34 PM
  6. Display sheet number in cell not sheet name
    By blufire in forum Excel General
    Replies: 5
    Last Post: 06-03-2010, 06:23 PM
  7. Replies: 6
    Last Post: 02-12-2007, 05:16 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