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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

skadan

Board Regular
Joined
Sep 5, 2002
Messages
54
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
 

Forum statistics

Threads
1,144,437
Messages
5,724,350
Members
422,545
Latest member
zillafreak

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
Top