如果工作簿中工作表结构受保护,则该值为 True。Boolean 类型,只读。
本示例检查活动工作簿中工作表结构是否受保护,如果是则显示一条消息。
If ActiveWorkbook.ProtectStructure = True Then MsgBox "Remember
,you cannot delete, add, or change " & _
Chr(13) & _
"the location of any sheets in this workbook
."
End If