vba - Unprotect not working in excel 2013 -


i've macro unprotect sheet , calculation , protect sheet after calculation.

sheets("test").unprotect password:="aaaa"  'calculation  sheets("test").protect password:="aaaa", allowformattingcells:=true 

it works fine in excel 2010, in excel 2013 sheet not unprotected , throws error.

i don't know mistake made? please me rid of this?

password should given given below, please try below code..

sheets("test").unprotect "aaaa"  sheets("test").protect "aaaa" 

fyr click here


Comments

Popular posts from this blog

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -