+ Reply to Thread
Results 1 to 2 of 2

Hide some worksheets of a protected sheet for multiple users

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    Istanbul, Turkey
    MS-Off Ver
    Excel 2010
    Posts
    35

    Hide some worksheets of a protected sheet for multiple users

    Hello I have a vba code below which works for one user but i want to add 3 more user, I couldnt make it . I appreciate your help



    Sub auto_open()
    Dim a As Worksheet
    If Environ("UserName") <> "User1" Then
    For Each a In Sheets
    If a.Name = "Sheet1" Or a.Name = "Sheet2" Then
    Else
    a.Visible = xlSheetHidden
    End If
    Next a
    ThisWorkbook.Protect "password", True, False
    End If
    End Sub

  2. #2
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Hide some worksheets of a protected sheet for multiple users

    use this code
    Please Login or Register  to view this content.
    Kamboj
    _________________________________________________________________________________
    Mark the thread as SOLVED if my answer satisfy you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] PW Protected Macros Needed to 1) Hide Certain Worksheets & 2) Unhide Worksheets & Columns
    By Aimee S. in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-21-2014, 10:49 AM
  2. How to allow users to copy protected sheet?
    By erkamu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2014, 04:48 PM
  3. How to allow users to copy and paste in protected sheet?
    By erkamu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2014, 06:35 AM
  4. [SOLVED] Hide columns in multiple worksheets - each sheet has its own name
    By Tyso in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-29-2013, 01:53 PM
  5. Replies: 9
    Last Post: 12-19-2012, 01:32 PM
  6. [SOLVED] How to let users add lines in lists in protected worksheets?
    By Reneps in forum Excel General
    Replies: 0
    Last Post: 11-22-2005, 05:35 AM
  7. [SOLVED] is it possible to Hide certain worksheets from certain users?
    By Admin in forum Excel General
    Replies: 2
    Last Post: 05-04-2005, 05:06 PM

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