Tandaan
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o baguhin ang mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Returns True if the formatting of columns is allowed on a protected worksheet. Read-only Boolean.
Syntax
expression.AllowFormattingColumns
expression A variable that represents a Protection object.
Remarks
The AllowFormattingColumns property can be set by using the Protect method arguments.
Example
This example allows the user to format columns on the protected worksheet and notifies the user.
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.