Syntax

expression.AllowFormattingRows

expression A variable that represents a Protection object.

Remarks

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

Example

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

Visual Basic for Applications
Sub ProtectionOptions() ActiveSheet.Unprotect ' Allow rows to be formatted on a protected worksheet. If ActiveSheet.Protection.AllowFormattingRows = False Then ActiveSheet.Protect AllowFormattingRows:=True End If MsgBox "Rows can be formatted on this protected worksheet." End Sub
allow formatting rows allowformattingrows allowformattingrows property

See also: