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

authentication - Mongodb revoke acccess to connect test database -

How to merge four videos on one screen with ffmpeg -

c - getting error: cannot take the address of an rvalue of type 'int' -