I want a special protection

  • Thread starter Thread starter ChrisPisani
  • Start date Start date
C

ChrisPisani

Imagine you are a company and have an excel file, but only want staff to
even view the worksheets.
I have an excel file with some data, I hid all the worksheets in a way
so you cannot unhide them by using: Format, Worksheets, Unhide. The
only way of unhiding them is through VBEditor. The VB Project is also
protected by a password.

I have made 2 new sheets, one was added to the completly hidden list of
worksheets and the other is the first and only worksheet one can view.
In this sheet I have made a place where they can wright only their
username and password. In the 2nd worksheet (the one that is hidden) I
put a list of all the usernames and their passwords.


My question is: is there a way that if the username and password are
correct (using LOOKUP and IF formula), some worksheets will appear from
the hidden list.

eg: if username = John and his password = 455
When he enteres username John and password 455, certain worksheets (or
all) will be visable

Attached is rough example I created now (the worksheets are not yet
hidden and no passwords are needed)

Please reply, I would really like to know.
PS: If you know of any website that has free downloads of excel
programs please let me know, I always enjoy having several programs for
everything I have.

Thank You very much
Chris


+----------------------------------------------------------------+
| Attachment filename: example.xls |
|Download attachment: http://www.excelforum.com/attachment.php?postid=364845|
+----------------------------------------------------------------+
 
Chris,

Add a button to the (always visible) sheet. Let the button start a VB
routine that checks the username/password and unhide the sheets which may be
seen by that user. NB : The sheets should be hidden again when the
workbook is closed. You can arrange that by using the workbook's
beforeclose event.

--
Regards,
Auk Ales

* Please reply to this newsgroup only *
* I will not react on unsolicited e-mails *
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top