Protect then reprotect using macro

G

Guest

This is so frustrating. When you password protect your sheet you can filter
if you tick ALL the options but you can't use the ShowAll feature. Does any
one know how to unprotect sheet then select ShowAll then re protect? When I
attempt to do it then run the macro it keeps asking for a password. I don't
want users to have to use a password. I would like the macro to type the
password instead.
 
D

Dave Peterson

Worksheets("somesheetnamehere").unprotect password:="what's the password"
'do your stuff
Worksheets("somesheetnamehere").protect password:="what's the password"
 

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