语法
表达式.ProtectDrawingObjects
表达式 一个代表 Worksheet 对象的变量。
示例
如果 sheet1 中的形状处于保护状态,则此示例显示一个消息框。
if(Worksheets.Item("Sheet1").ProtectContents == true){ MsgBox("The contents of Sheet1 are protected.") }