Detecting a sheet unprotect?

D

Don Wiss

It doesn't seem possible to detect when a user unprotects a sheet. It
doesn't set off a Worksheet_Change event. Is there some way to detect this?

Don <donwiss at panix.com>.
 
J

Jim Thomlinson

Password protect the sheet. If the user legitimately need to unprotect the
sheet give thtem a button to do so and you will know when they are
unprotecting. You will want to give them another button to protect. The only
hole in this plan is if the unprotect using your button and then re portect
using the menu...

Otherwise I am not aware of any way to catch that event...

HTH
 
G

gocush

Don,
I haven't tried this but perhaps a Worksheet_change event in which you look
for an err. ie when the user tries to change a locked cell and gets the
"protected sheet error msg" that should give your sub an error, which you
want and will then be ignored by your code. On the other hand if there is NO
error then you can take whaterver steps you want, knowing that the sheet is
not protected.
 

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