Share via


CellFormat.Locked Property

True if the object is locked; False if the object can be modified when the sheet is protected. Returns Null if the specified range contains both locked and unlocked cells.

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 CellFormat
Dim value As Object

value = instance.Locked

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

Property Value

Type: System.Object

See Also

Reference

CellFormat Interface

CellFormat Members

Microsoft.Office.Interop.Excel Namespace