1.Excel中取消工作表保护的方法如下。文档介绍了在Excel中解除工作表保护的方法。从打包文件中取出对应sheet页面的配置xml文件,然后删除xml文件中的sheetProtection节点。最后将文件放入压缩包中,恢复原来的excel后缀。重新打开excel表格,sheet页面的表格保护已经去掉了。https://www.jianshu.com/p/b01...https://www.cnblogs.com/shadr...2.使用python快速去除工作表保护如果sheet页数很多,比较麻烦一个一个地修改它们,所以这里是一个使用python脚本的快速修改:.childNodes:if(parent.tagName=='sheetProtection'):root.removeChild(parent)withopen(xml_file,'w',encoding='UTF-8')asf:doc.writexml(f)walk_names=os.walk(r'xl\worksheets')for(directory,sub_directorys,file_names)inwalk_names:fornameinfile_names:m=re.match(r'(.+\.)xml$',name,re.I)ifm:delete_protection_node(os.path.join(directory,name))
