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??
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??
![]()
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)
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.
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.)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks