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
Post a Comment