Syntax

expression.AllowFormattingColumns

expression A variable that represents a Protection object.

Remarks

The AllowFormattingColumns property can be set by using the method arguments.

Example

This example allows the user to format columns on the protected worksheet and notifies the user.

Visual Basic for Applications
Sub ProtectionOptions() ActiveSheet.Unprotect ' Allow columns to be formatted on a protected worksheet. If ActiveSheet.Protection.AllowFormattingColumns = False Then ActiveSheet.Protect AllowFormattingColumns:=True End If MsgBox "Columns can be formatted on this protected worksheet." End Sub
ALLOW allow formatting columns allowformatting allowformattingcolumns allowformattingcolumns property

See also: