|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
请参考
Sub 工作表密码破解() '利用Excel的BUG实现清除密码
'对工作表加密,记住其中Protect的参数变化
  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
|
|