Results 1 to 3 of 3

Thread: Hide a sheet in excel file from endusers forever

  1. #1

    Hide a sheet in excel file from endusers forever

    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi All,

    I had come across few excel files where few sheets are hidden forever i.e., the visible property cant be set by other users in properties window.

    The VBA code to make the sheet visible doesnt have any effect and no impact on the hidden sheets.

    Im looking for a similar information / approach to do for my excel file for a tool creation.
    Can anyone helpme to achieve this. Thanks in advance.

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Nanaimo, BC, Canada
    Blog Entries
    Excel Version
    Excel Office 365 Insider
    Worksheets have 3 states: visible, hidden and veryhidden. The veryhidden state can't be seen through the user interface, but the sheets can be seen and unhidden via VBA.

    The code to set a worksheet to veryhidden is:

    worksheets("Sheet1").visible = xlsheetveryhidden
    Beyond that, the only way I can see a workbook having sheets that don't become visible at all is by having an addin. But then no sheets will every be visible, as the addin is essentially intended to be a code container.
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    Main Site: -||- Blog: -||- Forums:
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    Super Moderator Bob Phillips's Avatar
    Join Date
    Mar 2011
    Excel Version
    Want to hide a sheet forever? Then delete them and store the data elsewhere.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts