Protection.AllowFormattingColumns 属性 (Excel)
如果允许对受保护的工作表上的列进行格式设置,则返回 True。 只读 Boolean。
语法
表达式。AllowFormattingColumns
表达 一个代表 Protection 对象的变量。
备注
可以使用 Protect 方法参数设置 AllowFormattingColumns 属性。
示例
本示例允许用户对受保护的工作表上的列进行格式设置,并通知用户。
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
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈