April 2006
Beginner
1114 pages
98h 16m
English
worksheet.ProtectContents
Returns True if the worksheet’s contents are protected; otherwise, returns False. The following code displays the types of protection applied to a worksheet in the Immediate window:
Set ws = ThisWorkbook.Sheets("Protection")
Debug.Print "Protections on workbook:"
Debug.Print "Contents?", "Controls?", "UI?", "Scenarios?"
Debug.Print ws.ProtectContents, ws.ProtectDrawingObjects, _
ws.ProtectionMode, ws.ProtectScenariosRead now
Unlock full access