如果允许删除受保护工作表上的列,则返回
True。
Boolean 类型,只读。
语法
表达式.AllowDeletingColumns
表达式 一个代表 Protection 对象的变量。
说明
可以使用 Protect 方法参数设置
AllowDeletingColumns
属性。
对于受保护的工作表,必须取消对包含要删除的单元格的列的锁定。
示例
本示例取消对受保护的工作表上的列 A 的锁定,然后允许用户删除列 A 并通知用户。
示例代码 |
function ProtectionOptions(){
ActiveSheet.Unprotect()
// Unlock column A.
Columns.Item("A:A").Locked = false
// Allow column A to be deleted on a protected worksheet.
if(ActiveSheet.Protection.AllowDeletingColumns == false){
ActiveSheet.Protect(null, null, null, null, null, null, null, null, null, null, null, true)
}
MsgBox("Column A can be deleted on this protected worksheet.")
}
|