Worksheet.ProtectedContents is what you will need to use on each sheet.
So, I would create a loop like this:
Public Function wbAllSheetsProtected(wbTarget As Workbook) As Boolean Dim ws As Worksheet wbAllSheetsProtected = True For Each ws In wbTarget.Worksheets If ws.ProtectContents = False Then wbAllProtected = False Exit Function End If Next ws End Function
The function will return True if each sheet is protected, and False if any worksheets are not protected. Hope this is what you were looking for.
source share