I used the following vb code to protect the active worksheet with a password and it works. xyz is my example password.
BUT, I have one cell that is not proctected and when I run this code, it protects all of the cells, even the one that I have formatted as Not Protected.![]()
ActiveSheet.Protect Password:="xyz"
Can anyone give me a lift. I think I need a different way of protecting the activesheet.
Bookmarks