hockeypuck
New Member
- Joined
- May 30, 2006
- Messages
- 4
How can I check if a sheet is protected?
This code below gives me a reply but then it also goes ahead and protects the sheet. I just want to check - not protect.
Private Sub Worksheet_Change(ByVal Target As Range)
If (ActiveSheet.Protect=true) Then MsgBox "Is protected"
End Sub
This code below gives me a reply but then it also goes ahead and protects the sheet. I just want to check - not protect.
Private Sub Worksheet_Change(ByVal Target As Range)
If (ActiveSheet.Protect=true) Then MsgBox "Is protected"
End Sub