语法
表达式.ProtectScenarios
表达式 一个代表 Worksheet 对象的变量。
示例
如果 sheet1 中的方案处于保护状态,则本示例将显示消息框。
if(Worksheets.Item("Sheet1").ProtectScenarios){ MsgBox("Scenarios are protected on this worksheet.") }