HI,
I've seen alot of posts on "how to cut and paste", but I actually want to prevent it. We have a worksheet that gets changed by multiple people. Although I've taken steps to lock and protect the worksheet, the borders around the cells still keep getting rearranged or remove when somebody cuts and pastes.
I would like my coworkers to cut/copy and paste the contents of a cell, but NOT cutting and pasting the borders. Disabling CUT and not COPY would probably work to.
Is this possible?
---------------------------------------------------------------------------------
I also have a macro button that will let my coworkers make some text red in a protected worksheet. My question is,
how do I add a password to this code to protect with a pass?
I've seen alot of posts on "how to cut and paste", but I actually want to prevent it. We have a worksheet that gets changed by multiple people. Although I've taken steps to lock and protect the worksheet, the borders around the cells still keep getting rearranged or remove when somebody cuts and pastes.
I would like my coworkers to cut/copy and paste the contents of a cell, but NOT cutting and pasting the borders. Disabling CUT and not COPY would probably work to.
Is this possible?
---------------------------------------------------------------------------------
I also have a macro button that will let my coworkers make some text red in a protected worksheet. My question is,
how do I add a password to this code to protect with a pass?
Code:
Sub Red()
CelFont 3
End Sub
Function CelFont(ByVal sglColor As Single)
If ActiveCell.Locked Then
MsgBox "Cell is locked."
Else
ActiveSheet.Unprotect
ActiveCell.Font.ColorIndex = sglColor
ActiveSheet.Protect
End If
End Function