Users' Authorizations

Excello

New Member
Joined
Aug 19, 2002
Messages
43
Hi All,

I have created a workbook having 20 worksheets, Assume that the sheet names starts by "A" to "T". In brief, I want to authorize users to certain worksheets for example:
- User Name "AAA" with Password "XXX" To gain access from Sheet "A" To "J"
- User Name "BBB" with Password "YYY" To gain access from Sheet "K" To "R"
- User Name "ADMIN" with Password "ZZZ" To gain access To all Worksheets.

Is it doable, Can anyone help me to make it happen.

Appreciate your help.
Excello
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
you could maybe try hide/unhiding sheets depending on a password/log-in. Something like:

Sub filterpass()
'inputbox
Dim message, title, password
message = "Enter your password ..."
title = ""
password = InputBox(message, title)
'user
If password = "yourpassword" Then Application.Run "'sheet.xls'!access"
End Sub

Sub access() 'user
ActiveWorkbook.Unprotect
Sheets("sheet1").Visible = True
ActiveWorkbook.Protect
End Sub

adding other password(s) as necessary

~ Mike
 
Upvote 0

Forum statistics

Threads
1,214,626
Messages
6,120,602
Members
448,974
Latest member
ChristineC

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top