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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -