1、打开Excel中vb编辑
2、将下面代码运行(中间可以提示输入密码,不管,然后多运行几次)
Sub DeletePW()
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, AllowFiltering:=True
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, AllowFiltering:=True
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, AllowFiltering:=True
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, AllowFiltering:=True
ActiveSheet.Unprotect
End Sub
本文介绍了一种使用VBA宏在Excel中绕过工作表保护的方法。通过反复执行特定的VBA代码来实现解密过程,该过程涉及对工作表的保护与解除保护操作。
2068





