+ Reply to Thread
Results 1 to 5 of 5

limit access to worksheets?

Hybrid View

JENNYC limit access to worksheets? 03-22-2007, 09:40 AM
jetted sub auto_open() Indx = 1... 03-22-2007, 10:56 AM
dominicb Good afternoon JENNYC I... 03-22-2007, 12:13 PM
Jmarc Re: limit access to... 08-30-2012, 09:57 PM
Cutter Re: limit access to... 08-30-2012, 10:17 PM
  1. #1
    Registered User
    Join Date
    02-07-2005
    Location
    Minneapolis
    Posts
    36

    limit access to worksheets?

    Hello! i have a shared workbook accessed by multiple users, but i would like to restrict certain users from accessing and viewing certain sheets in the workbook...is this possible??

  2. #2
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363
    sub auto_open()
        Indx = 1
        Do
        EnvString = Environ(Indx)
        If LCase(Left(EnvString, 9)) = "username=" Then    'Lan user id
            regUserID = Right(EnvString, Len(EnvString) - 9)
        End If
        Indx = Indx + 1
        Loop Until EnvString = ""
        Indx = 0
    '
        If regUserID <> "BOSSM" And regUserID <> "MXJ124" And regUserID <> "JETTED" Then
           Sheets("estimate").Visible = xlHidden
           Sheets("Start").Visible = xlVeryHidden
           Sheets("milestones").Visible = xlHidden
           Sheets("Lesley Summary").Protect password:="Marc"
           Sheets("Marc Summary").Protect password:="Marc"
           Sheets("Mike Summary").Protect password:="Marc"
           Sheets("Gilles Summary").Protect password:="Marc"
           Sheets("Pierre Summary").Protect password:="Marc"
           Sheets("Steve Summary").Protect password:="Marc"
           Sheets("Work Progress").Protect password:="Marc"
        End If
    end sub
    Denis

    Please always attach the sample workbook without sensitive information when asking for help

    To add a module
    Press Alt + F11 (this is the Visual Basic Environment)
    Insert Menu, select Module
    Past code there
    Close Visual Basic Environment (X)

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon JENNYC

    I have a template available which allows for this type of situation within Excel. You, as administrator, control the access rights and assign users' permission to view certain sheets on either a read / write or read only basis. Thus, the sheets a user can see on opening are determined by the administrator. It doesn't recognise each user automatically, but each user is required to "log-in" with their own password.

    If you would like to use this then send me a private message with your e-mail address. The file comes with full instructions.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Registered User
    Join Date
    08-30-2012
    Location
    Chicag, il
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: limit access to worksheets?

    Quote Originally Posted by dominicb View Post
    Good afternoon JENNYC

    I have a template available which allows for this type of situation within Excel. You, as administrator, control the access rights and assign users' permission to view certain sheets on either a read / write or read only basis. Thus, the sheets a user can see on opening are determined by the administrator. It doesn't recognise each user automatically, but each user is required to "log-in" with their own password.

    If you would like to use this then send me a private message with your e-mail address. The file comes with full instructions.

    HTH

    DominicB
    Hello. I am in need of this worksheet as well. Would you be so kind as to send me a coy as well. Email sent in pm.

    Sincerely
    Jmarc
    Last edited by Jmarc; 08-31-2012 at 06:20 AM. Reason: Requested by forum leaded

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: limit access to worksheets?

    Jmarc

    You should send your e-mail address and request in a PM to DominicB. Posting your e-mail address in a public forum is not a good idea. (You can remove it by clicking the Edit Post button, deleting it and Save Changes.)

+ 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