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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -