ProtectScenarios 属性

       

如果工作表的方案处于保护状态,则该值为 TrueBoolean 类型,只读。

示例

如果 sheet1 中的方案处于保护状态,则本示例将显示消息框。

If Worksheets("Sheet1").ProtectScenarios Then _
    MsgBox "Scenarios are protected on this worksheet."