+ Reply to Thread
Results 1 to 2 of 2

Restrict HIDE / UNHIDE sheets by Username

  1. #1
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Restrict HIDE / UNHIDE sheets by Username

    Is there a way to exit a sub to prevent a user UNHIDING(or HIDING) a sheet unless their username is a set name as below, but triggered by the user attempting to Unhide the sheet (right clicking on a Tab>Selecting a Sheet to Unhide)?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Restrict HIDE / UNHIDE sheets by Username

    Hi, coreytroy,

    you may use xlSheetVeryHidden which is only available from the VBE, and I won´t rely on Application.Username but take the name of the system instead:
    Please Login or Register  to view this content.
    And I try to avoid the Worksheet_Deactivate-Event and use the Worksheet_Activate instead:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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