如果工作簿中的工作表次序处于保护状态,则该属性值为
True。
Boolean 类型,只读。
语法
表达式.ProtectStructure
表达式 一个代表 Workbook 对象的变量。
示例
本示例检查活动工作簿中工作表结构是否受保护,如果是则显示一条消息。
示例代码 |
if(ActiveWorkbook.ProtectStructure == true) {
MsgBox("Remember, you cannot delete, add, or change " + "\n" + "the location of any sheets in this workbook.")
}
|
Don't allow sheets to be rearranged?