Passwords

  • Thread starter Thread starter ranswrt
  • Start date Start date
R

ranswrt

I want to be able to use a password to protect the sheets. How do I write a
procedure that unprotects these sheets using a password?

Also, I checked the box below to get notified by email when I get a reply,
but I haven't been getting emails notifying me when a question is answered.
What do I need to do?

Thanks
 
Sheets("Sheet1").UnProtect Password:="tada"

Sheets("Sheet1").Protect Password:="tada"

As for the e-mail thing... Not a clue...
 
Make sure your emails aren't gong to junk mail? If not that... beats me.

Along with Jim's code it should be noted that someone can open the VBA
Editor and look at your password. To prevent this in the VBE (editor) go to
Tools->VBA Project Properties. Select the Protection tab and select Lock
Project for Viewing. Enter a password and click OK.
 
Thanks

StumpedAgain said:
Make sure your emails aren't gong to junk mail? If not that... beats me.

Along with Jim's code it should be noted that someone can open the VBA
Editor and look at your password. To prevent this in the VBE (editor) go to
Tools->VBA Project Properties. Select the Protection tab and select Lock
Project for Viewing. Enter a password and click OK.
 

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