Sub Test() Dim Check As Boolean Check = IsWsProtected(ActiveSheet) If Check = True Then Debug.Print "Its Protected" Else Debug.Print "Its NOT Proected" End If End Sub Public Function IsWsProtected(ProtectCheckWS As Worksheet) As Boolean If ProtectCheckWS.ProtectContents Then IsWsProtected = True Else IsWsProtected = False End If End Function
Welcome to FreeSoftwareServers Confluence Wiki
Overview
Content Tools