如果工作表的方案处于保护状态,则该值为 True。Boolean 类型,只读。
如果 sheet1 中的方案处于保护状态,则本示例将显示消息框。
If Worksheets("Sheet1").ProtectScenarios Then _ MsgBox "Scenarios are protected on this worksheet."