Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password Protection solution 2

Status
Not open for further replies.

MarkBeck

Technical User
Mar 6, 2003
164
CA
Hi

I have a workbook that has several users, all of whom have their own input sheet. I need to restrict them to be able to only view their own sheet.

I have a Users table, defining UserName, Password, WorksheetName.

The Welcome sheet asks for input of username & pasword, and returns (index+match formula) in cell "B6" the name of the users sheet, or "Error!" if the UserName & Password combination is wrong.

I would like to create 2 macros;

Macro A) renders ALL SHEETS EXCEPT "Welcome sheet" invisible upon Open (Event based)

Macro B) Makes visible the sheet that is named in "B6" above.

Thanks

Mark
 
Thanks Skip, my slip, you are right about that.

I thank you for your patience. It all works perfect!

Mark
 




FYI,

When performing methods on objects, in most cases they should NOT be selected -- just referenced. Selecting SLOWS down the process and forces you to make recovery statements.

Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
I Thank you Skip. Your advise/ Code is always valuable, to the point and neat.

I would like you to know that before deranging people on this site I first make a conscious effort myself. I am getting much better too.
 


Mark,

I am still learning myself. I credit Tek-Tips for a major portion of my gain of skills and knowledge.

Keep in mind that you will get better responses when you are clear, concise and complete when describing your problem and asking for help.

Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top