password a worksheet

M

Moh

i have a worksheet in a workbook i need a password so no one can view it.
only the main user can view it by entering the password
it contain valuble information about the company

can someone help to create a password box from the main menu to open the
worksheet.

if the password id incorrect then it should take the user back to the main
menu.

Please help
 
G

Gordon

Moh said:
i have a worksheet in a workbook i need a password so no one can view it.
only the main user can view it by entering the password
it contain valuble information about the company

can someone help to create a password box from the main menu to open the
worksheet.

You can password-protect a workbook but not an individual workSHEET within
that workbook AFAIK....
 
M

Moh

Gordon ok say if i create a userform called userform4

i have a label1 "password"

textbox1 for the user to type the password in

Commandbutton1 is OK - if password is correct then take me to Banking Sheet
- if wrong password the Sorry please re-enter the correct password.

Commandbutton2 is Cancel - this should return to main menu

now how will all this work?
 
L

Luke M

Although its possible to create something like that, it would not be secure,
as you would just be making a code to unhide a worksheet, which Excel does
not have a built in feature to password protect. I'd think the best you can
do is have your banking sheet in a seperate workbook, and password protect
that. You could do a hyperlink then from your first workbook to the "Banking
Sheet" (which is in a different, seperate workbook)

I'm also not sure how secure you are trying to get. I've heard Excel
passwords are not the strongest.
 
M

Moh

luke or anyone can you tell me how to use the userform4 with the password

i create a userform called userform4

i have a label1 "password"

textbox1 for the user to type the password in

Commandbutton1 is OK - if password is correct then take me to Banking Sheet
- if wrong password the Sorry please re-enter the correct password.

Commandbutton2 is Cancel - this should return to main menu


the end user isn't much of a wizkid to understand how to switch to the other
sheet.

Thank you
 

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

Top