+ Reply to Thread
Results 1 to 5 of 5

xlSheetVerryHidden not working

  1. #1
    Registered User
    Join Date
    01-03-2012
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    29

    xlSheetVerryHidden not working

    Hello,
    Excel 2010: I use
    Please Login or Register  to view this content.
    to hide sheets I need to be hidden.

    They disappear from the lower tab but I can still "unhide" them manually.

    I attach a file with two simple macros to show the problem as I am not sure I can explain it clearly.
    I have pasted screenshots in the file showing how I can "unhide" verry hidden sheets

    Please help I am stuck with this one.
    Attached Files Attached Files
    Last edited by Gzdnkh; 05-21-2013 at 07:22 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,243

    Re: xlSheetVerryHidden not working

    You're spelling it the Scottish way with too many rrrrr's ... It only has one: xlVeryHidden


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-03-2012
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: xlSheetVerryHidden not working

    ...there should be a smilie for facepalm.

    On the side note - why did it "half" work then? Someone at Microsoft has spelling problems as well?

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: xlSheetVerryHidden not working

    because the default value for a numeric variable is 0 so that is what xlsheetverryhidden is interpreted as and that happens to be the literal value of xlSheetHidden
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,243

    Re: xlSheetVerryHidden not working

    Thanks for the rep


    It's not "half working" ... you have offered it a VBA constant which hasn't been defined. Consequently, it is using a value of 0 which gives you xlSheetHidden.

    If you use Option Explicit at the top of all your code modules, you will get errors highlighted ... I'm sure this would have been picked up as an undefined variable.


    Regards, TMS

+ 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