Partager via


Protection.AllowFormattingCells Property

Returns True if the formatting of cells is allowed on a protected worksheet.

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

Syntax

'Declaration
ReadOnly Property AllowFormattingCells As Boolean
    Get
'Usage
Dim instance As Protection
Dim value As Boolean

value = instance.AllowFormattingCells
bool AllowFormattingCells { get; }

Property Value

Type: System.Boolean

Remarks

The AllowFormattingCells property can be set by using the Protect method arguments.

Use of this property disables the protection tab, allowing the user to change all formats but not to unlock or unhide ranges.

See Also

Reference

Protection Interface

Protection Members

Microsoft.Office.Interop.Excel Namespace