+ Reply to Thread
Results 1 to 9 of 9

Selecting Hiden Sheets

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Selecting Hiden Sheets

    Hi All

    I have this code that is in my contents page

    Please Login or Register  to view this content.
    There are 48 sheets in my workbook, and i want to hide a large amount

    When i hide sheets, if i click on say page 21 but its hiden it takes me to the next unhiden sheet, in this example page 26.

    Is there a way to stop this from happening without having the sheet unhidden?

    Dan

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Selecting Hiden Sheets

    What do you want to happen instead when you click on page 21 and it is hidden?

  3. #3
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Selecting Hiden Sheets

    I want to be able to go into that sheet, the likeness is that i wont need to (hence hiding the sheet) but rather than having to select unhide, then scroll through a list of sheets to find it, i would like the code to be able to do that in the contents sheet

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Selecting Hiden Sheets

    check if it is hidden before you try to activate it?
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Selecting Hiden Sheets

    Hi

    Yeah the sheet is hidden and by using your code above

    Please Login or Register  to view this content.
    It just gives me the error message

    i also tried

    Please Login or Register  to view this content.
    but that told me the (21) was worng, obviously no "'s

  6. #6
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Selecting Hiden Sheets

    then tried with "'s and still no joy

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Selecting Hiden Sheets

    Sorry, mistake on my part. You want to use .visible not .hidden, so:
    Please Login or Register  to view this content.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646
    If the sheet is hidden how are you clicking it?
    If posting code please use code tags, see here.

  9. #9
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Selecting Hiden Sheets

    Thats great works fine, except i had to swap the code round so it said

    Please Login or Register  to view this content.
    This then unhide the sheet if it was hidden

    Thanks for your help yudlugar

    Norie, i have a contents page as my first tab in excel and because i want to be able to have some sheets hidden, rather than having to select unhide and scroll through the list, i wanted a code to unhide it, the contents page has command buttons which activate the sheet you require when clicking it

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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