返回一个
Boolean 值,它指明是否可以在受保护的工作表上编辑区域。
语法
表达式.AllowEdit
表达式 一个代表 Range 对象的变量。
示例
在此示例中,ET 通知用户是否可编辑受保护的工作表上的单元格 A1。
示例代码 |
function UseAllowEdit(){
let wksOne = Application.ActiveSheet
// Protect the worksheet
wksOne.Protect()
// Notify the user about editing cell A1.
if(wksOne.Range("A1").AllowEdit == true) {
MsgBox("Cell A1 can be edited.")
}
else {
MsgBox("Cell A1 cannot be edited.")
}
}
|