pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
I am using this code be
before every code. I have like 25 vba linked in different wierd ways..
Everytime I run the code it says sheet is protected, "Runtime error 1004, the cell or chart you are trying to change is protected"...weird because I did not even protect it manually (alt > t> P > p 'way).
Can someone please advice?
Thanks
Code:
Sheet3.Unprotect password:="Secret"
' my code
Sheet3.protect password:="Secret"
Everytime I run the code it says sheet is protected, "Runtime error 1004, the cell or chart you are trying to change is protected"...weird because I did not even protect it manually (alt > t> P > p 'way).
Can someone please advice?
Thanks