macros
Unprotect the worksheet in the macro, like so:
Sub MyMacro()
Activesheet.unprotect password:="mypassword"
'your code here
Activesheet.protect password:="mypassword"
End Sub
HTH, James
"chris123" wrote in message
...
I have created a button to hide and unhide certain cells in a worksheet
however when i protect the worksheet my macros stop working and basically
wont let me use my buttons-the hidden parts become highlighted aswel. I am
also making it so only specific people can only edit specific parts of the
sheet and due to my macros messing things up they are not working. i
really
don't know what to do any suggestions?
|