Syntax

expression.ProtectionMode

expression A variable that represents a Worksheet object.

Example

This example displays the status of the ProtectionMode property.

Visual Basic for Applications
MsgBox ActiveSheet.ProtectionMode

See also: