+ Reply to Thread
Results 1 to 7 of 7

When a sheet name is entered in a cell & a shape is press it should open that sheet

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    Bandaragama,Sri Lanka
    MS-Off Ver
    Excel 2010
    Posts
    16

    When a sheet name is entered in a cell & a shape is press it should open that sheet

    Hi

    I have 3 sheets eg. ( jan13 , mar13 , may13 ) . when I enter one of these names in a cell in another sheet & press a button ( drawn by inserting a shape ) it should open that particular sheet

    Pls tell me how to do this

    Rgds

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: When a sheet name is entered in a cell & a shape is press it should open that sheet

    do you really want to press a button?

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: When a sheet name is entered in a cell & a shape is press it should open that sheet

    I would do this completely differrently.

    When you open the workbook, read all the sheetnames into an array.
    then create a data Validation list in the cell that you are interested that lists the sheet names.

    Finally run a macro whenever you change that cell to switch sheets.

    So post your spreadsheet so I can show you how.

    Back in ten mins.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: When a sheet name is entered in a cell & a shape is press it should open that sheet

    Perhaps another option would be to create a list of all sheet names and hyperlink them, so when you click on the sheet name, you go there.

    right-click on a cell and select "Name a range" call it Sheetnames.
    then in "refers to, copy this...
    =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")

    Now, where you want the sheet names to appear, copy this down...
    =IFERROR(HYPERLINK("#"&"'"&INDEX(Sheetnames,ROWS($A$2:A2))&"'!A1",INDEX(Sheetnames,ROWS($A$2:A2))),"")

    This will create a list of hyperlinked sheet names. Copy it way past how-ever many sheet you have

    If you really still want to have this in a shape, let me know
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    01-14-2013
    Location
    Bandaragama,Sri Lanka
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: When a sheet name is entered in a cell & a shape is press it should open that sheet

    I have attached the file & instructions are on the first sheet. I prefer to select the sheet by assigning the macro to the button

    thanks
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: When a sheet name is entered in a cell & a shape is press it should open that sheet

    Ok

    'If you don't want to push a button
    your code is:-

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 12-14-2013 at 03:32 PM.

  7. #7
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: When a sheet name is entered in a cell & a shape is press it should open that sheet

    If you insist on using a button then your code becomes:-

    Please Login or Register  to view this content.

+ 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: 12
    Last Post: 11-10-2012, 09:54 PM
  2. VBA copy sheet 1 to a new sheet when data is entered in a certain cell
    By dustinshepard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2012, 11:50 PM
  3. Copy row from Sheet 1 to Sheet 2 when data entered in cell F
    By tony0710 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-12-2011, 02:39 PM
  4. Update corresponding cells on master sheet when data entered to filtered sheet
    By Sumatied in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-18-2011, 09:50 PM
  5. Replies: 17
    Last Post: 05-19-2009, 11:34 AM

Tags for this Thread

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