+ Reply to Thread
Results 1 to 6 of 6

Code for Jumping to a sheet needed

  1. #1
    Registered User
    Join Date
    05-26-2008
    Posts
    28

    Code for Jumping to a sheet needed

    Hi all,

    I want the code for a macro to go to the sheet whose name I can type in the pop-up. I want to be able to give the first or last few characters instead of the full name. In any case it should go to the closest match. Thanks in advance.

    -Charles.
    Last edited by charles.2345; 05-24-2011 at 11:39 PM. Reason: problem solved

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Code for Jumping to a sheet needed

    This will do that:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Code for Jumping to a sheet needed

    Another way, using a UserForm with a ComboBox and CommandButton
    In the UserForm Module
    Please Login or Register  to view this content.

    Then in a standard module
    Please Login or Register  to view this content.

    The combobox will populate with all the Sheet names, including Chart sheets in tab order.

    The code can be easily modified to list only Worksheets, or Charts

    Run the macro "SheetNavigator"

    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    05-26-2008
    Posts
    28

    Re: Code for Jumping to a sheet needed

    Hi Jerry,

    This works like a charm.

    Thanks
    Charles

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Code for Jumping to a sheet needed

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  6. #6
    Registered User
    Join Date
    05-26-2008
    Posts
    28

    Re: Code for Jumping to a sheet needed

    Quote Originally Posted by Marcol View Post
    Another way, using a UserForm with a ComboBox and CommandButton
    In the UserForm Module
    Please Login or Register  to view this content.

    Then in a standard module
    Please Login or Register  to view this content.

    The combobox will populate with all the Sheet names, including Chart sheets in tab order.

    The code can be easily modified to list only Worksheets, or Charts

    Run the macro "SheetNavigator"

    Hope this helps
    Your code also worked soooo fine. Love it. Thanks.

+ 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