Skip to content
本页内容

DeleteAll (方法)

删除有权访问工作表上受保护的区域的所有用户。

示例

python
#在本示例中,ET 将删除有权访问活动工作表中第一个受保护的区域的所有用户。本示例假定工作表不受保护。
def test():
    wksSheet = Application.ActiveSheet
                                    
    #Remove all users with access to the first protected range.
    wksSheet.Protection.AllowEditRanges.Item(1).Users.DeleteAll()