Password Setup

GBOB

New Member
Joined
Mar 6, 2002
Messages
17
Hi all,
I have searched the board and have not found exactly what I am looking for so here goes. Upon opening a workbook (with about 30 sheets) I would like a message box to prompt the user for a user name and password (there will be around 50 users). Based on the username (and correct password) I would then like to give different users different access to worksheets based on what I have defined they can view. (For example I would like user1 to be able to view worksheets a, b, & c, and user2 to be able to view worksheets b,c, d, etc....)

I have created a simple username and password prompt, and can probably figure out some very inefficient code to do all this, but perhaps someone can give me a clean way to put this together. My first thought was to have a 'User Access' worksheet, with Username in column A, password column B, and then list the 50 worksheets, putting an x if they have access to the sheet and an o if they do not. Not sure how to set up the code though.

Thanks!!!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
An addition,

I have seen the post by y2k on 03-06 which covers the same issue. Am looking for more insight into the precise and efficient coding that Dave Hawley refers to.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,416
Messages
6,119,386
Members
448,891
Latest member
tpierce

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