Macro that retains password.

S

SpeeD72

Hi guys.

Im doing a macro that hides some rows and then protects a
sheet (sheet1). What i cant do is to retain the original
password protection for that sheet. I can´t make excell
ask me for a password either.

If this can´t be done, can i hide some rows and protect
them with a password so that nobady can unhide them??

Thanks a lot!!!
SpeeD
 
T

Thomas

'hide your rows
activesheet.protect "Your password"
'to unprotect sheet
activesheet.unprotect "Your 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