+ Reply to Thread
Results 1 to 11 of 11

selected sheet gets opend on command click

  1. #1
    Registered User
    Join Date
    03-07-2012
    Location
    jaipur
    MS-Off Ver
    Excel 2007
    Posts
    50

    selected sheet gets opend on command click

    hi all , i have a workbook , on which many sheets are their , sheet one is a master sheet on which a drop down list is their containing a list as "PHO" ,"cho", "dho", "nho", and has a command button on it ,workbook has sheets named "PHO" ,"cho", "dho", "nho", need a macro as user selects "PHO" from drop down list , after selecting PHO from list , when user clicks on command button , sheet named PHO gets opend, same process for "cho", "dho", "nho" as well. please help

  2. #2
    Registered User
    Join Date
    03-05-2011
    Location
    Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: selected sheet gets opend on command click

    There you go, but I added a button instead of making it auto go there. Assumed your cell with the values from the drop down is in "A1"

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-07-2012
    Location
    jaipur
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: selected sheet gets opend on command click

    list box is not in cell its located in between cell9 and 10

  4. #4
    Registered User
    Join Date
    03-07-2012
    Location
    jaipur
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: selected sheet gets opend on command click

    it is a list box on the master sheet

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: selected sheet gets opend on command click

    Try the attached WorkBook. It does not need a Button to select Sheet. It also demonstrates some other Hiding and Password features as well.

    Also see the "Please consider" note at the Bottom of this post.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  6. #6
    Registered User
    Join Date
    03-05-2011
    Location
    Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: selected sheet gets opend on command click

    Winton,
    I like your solution a lot. Never thought of hiding buttons, but it makes it quite cool indeed.

    kshitij_dch,
    I believe it is a work-around, but it will get you going for now: Sheet Solution.xlsm
    If you have a "List Box" from control, try right clicking, Format Control and in my example add D2 as the Cell Link. Then add the =VLOOKUP(D2,A2:B4,2,FALSE) in the Selection Cell and run the following Macro:

    Please Login or Register  to view this content.

    Number List Options Cell Link Selection
    1 cho 1 =VLOOKUP(D2,A2:B4,2,FALSE)
    2 dho
    3 nho

  7. #7
    Registered User
    Join Date
    03-07-2012
    Location
    jaipur
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: selected sheet gets opend on command click

    i am not able to see the workbook could you please attah a code of it ???

  8. #8
    Registered User
    Join Date
    03-07-2012
    Location
    jaipur
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: selected sheet gets opend on command click

    its not working for me

  9. #9
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: selected sheet gets opend on command click

    @ Slone,

    Thank you for the feedback.

    Hello kshitij_dch,

    No comment from you about my sample WorkBook.

    Would you prefer something like this then?
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-07-2012
    Location
    jaipur
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: selected sheet gets opend on command click

    hi Winon not getting it , still trying

  11. #11
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: selected sheet gets opend on command click

    Hello kshitij_dch,

    hi Winon not getting it
    I don't understand what it is that you can't get.

    Maybe it would be better if you could upload a sample WorkBook complete with Code and all, showing us what you have, and how you would liked it changed.

+ 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