Range.Locked Property

Determines if the object is locked.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property Locked As Object
    Get
    Set
'Usage
Dim instance As Range
Dim value As Object

value = instance.Locked

instance.Locked = value
Object Locked { get; set; }

Property Value

Type: System.Object

Remarks

This property returns True if the object is locked, False if the object can be modified when the sheet is protected, and Null if the specified range contains both locked and unlocked cells.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace