Excel) (Workbook.ProtectStructure 屬性
如果活頁簿中的工作表順序受到保護,則本屬性值為 True。 唯讀的 Boolean。
語法
運算式。ProtectStructure
表達 代表 Workbook 物件的 變數。
範例
本範例會在使用中活頁簿中的工作表順序受到保護時顯示訊息。
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
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。