Hello all
Is it possible please to password protect a cell from being changed without a password
I would like pop up box when the cell value changes to "Yes" prompting for a password first.
This would be for any cell change in column "P"
I was trying to use something like this
Is it possible please to password protect a cell from being changed without a password
I would like pop up box when the cell value changes to "Yes" prompting for a password first.
This would be for any cell change in column "P"
I was trying to use something like this
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim pword As String
If Not Intersect(Columns("P"), Target) Is Nothing Then
If [(P:P,"="Yes"")] Then
pword = Application.InputBox("Enter password", "Password", Type:=2)
If pword <> "test" Then Exit Sub
Target.Select
End If
End If
End Sub