+ Reply to Thread
Results 1 to 2 of 2

How to switch to different tab in same workbook using VB code

  1. #1
    Registered User
    Join Date
    08-03-2009
    Location
    Banglore, India
    MS-Off Ver
    Excel 2003
    Posts
    8

    How to switch to different tab in same workbook using VB code

    Hi,

    I am creating a excel sheet in which I have added a VB form which populate some values from the excel sheet.

    What I want is that when I select "type number" from combo box and click on "view type number status" , I should automatically comes in that work sheet.

    fo ex.
    I select IR from "show All type" and corresponding values populated in "select one type number" , let it be 1. Then I should automatically comes to work sheet with name "1".

    I have attached the excel on which I am working.

    Can any body tell me the solution.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: How to switch to different tab in same workbook using VB code

    Welcome to the Forum

    The below code assumes that the sheet will always exist...
    Please Login or Register  to view this content.
    It would be better to include error handling in case the requested sheet doesn't exist & there are a couple of examples shown here: http://www.mrexcel.com/forum/showthread.php?t=68765

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

+ 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