跳到主要内容

如何在Excel中一次取消保护多个工作表?

如果您有一个工作簿包含多个具有相同密码的受保护工作表,现在您需要取消保护它们才能修改某些信息。 也许,您可以使用Excel中的“取消保护工作表”来逐一取消保护工作表,但是当需要取消保护多个工作表时,这将浪费大量时间。 在这里,我将向您介绍一些取消保护多个受保护工作表的快速方法。

使用VBA代码一次取消保护多张纸

使用 Kutools for Excel 一次取消保护多个工作表


箭头蓝色右气泡 使用VBA代码一次取消保护多张纸

如果您擅长VBA代码,则以下代码可以帮助您快速取消一次保护多张纸的工作。

1。 按住 ALT + F11 键,然后打开 Microsoft Visual Basic应用程序 窗口。

2。 点击 插页 > 模块,然后将以下代码粘贴到“模块窗口”中。

Sub unprotect_all_sheets() 
On Error Goto booboo 
unpass = InputBox("Please enter the password:") 
For Each Worksheet In ActiveWorkbook.Worksheets 
Worksheet.Unprotect Password:=unpass
Next
Exit Sub 
booboo: MsgBox "There is s problem - check your password, capslock, etc." 
End Sub 

3。 然后按 F5 键运行代码,然后输入您为受保护工作表申请的密码。 (受保护的工作表必须具有相同的密码)请参见屏幕截图:

4。 点击 OK,并且受保护的工作表已被立即取消保护。


箭头蓝色右气泡 使用 Kutools for Excel 一次取消保护多个工作表

Kutools for Excel取消保护工作表 是一种方便的工具,可以帮助您快速取消一次使用同一密码保护多张纸的保护。

Kutools for Excel : 带有300多个便捷的Excel加载项,可以在30天内免费试用

安装后 Kutools for Excel,请执行以下操作:

1。 点击 Kutools 加 > 取消保护工作表,请参见屏幕截图:

2。 在 取消保护工作表 对话框中,受保护的工作表将列在 工作表 列表框,然后选中要取消保护的工作表名称,然后单击 OK,然后在弹出的对话框中输入您为受保护工作表申请的密码(受保护工作表必须具有相同的密码),请参见屏幕截图:

3。 然后点击 OK时,会出现一个提示框,提醒您有多少张纸没有被保护。 然后点击 OK,所有选定的工作表已在您的工作簿中不受保护。 看截图:

提示: 要一次保护工作簿中的所有工作表,只需申请 保护工作表 of Kutools for Excel 如下图所示:

立即下载并免费试用 Kutools for Excel!


箭头蓝色右气泡 演示:使用 Kutools for Excel 一次保护和取消保护多个工作表

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!

相关文章:

如何在Excel中一次保护多个工作表?

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Nice - thank you so much! Worked like as charm.

I assume there is also a "Lock Everything back Up" Option??
This comment was minimized by the moderator on the site
This code worked for years, but now it doesn't :( It always says password error, but if I individually unlock each tab it is fine. Did something change with excel to wreck the code?
This comment was minimized by the moderator on the site
Hello, LL,
I have tested the code, it works well in my workbook, could you upload your file here if you don't mind? we can help to check the problem.
Or you can try our KTE feature this article introduces, it supports a 30-day free trial with full features, you can download it here: https://www.extendoffice.com/download/kutools-for-excel.html.

Thank you!
This comment was minimized by the moderator on the site
Hi,

in my work i have to deal every day with multiple excel files , and inside each one protect sheets, all has same password , 7b7b3b1b5b5b5 is there any way to unprotect all the sheets inside for example ( 100 excel files and more ).

best regards,
This comment was minimized by the moderator on the site
Hello Ali,

Glad to help. You can use our Decrypt workbooks feature of Kutools Plus of Kutools for Excel. You can choose no matter how many files, then input the passward. Just a few clicks and all is done. Please see the screenshots.

Our Kutools for Excel supports a 30-day free trial with full features. Here is the download link: https://www.extendoffice.com/download/kutools-for-excel.html. Plesae have a try.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
I just installed it, but I don't see the "Enterprise" tab on the menu. I wanted to test the feature to unprotect multiple sheets at once, but can't find that feature anywhere. The options I have on my menu are Kutools and Kutools Plus, but not Enterprise. What am I missing?
This comment was minimized by the moderator on the site
Hello, Paulo,
Sorry for this, the Enterprise tab has been renamed as Kutools Plus, you can find the Unprotect Worksheet from the Kutools Plus tab, please check the below screenshot:
This comment was minimized by the moderator on the site
When you say "Unprotect multiple sheets at once with Kutools", does it actually do it at once, in parallel, or does it still do it sequentially? (Does this provide a speed improvement over doing it sequentially?) thank you
This comment was minimized by the moderator on the site
Is it possible to lock sheets, but retain the ability to add rows and use filters.
This comment was minimized by the moderator on the site
worked !! thanks handy command
This comment was minimized by the moderator on the site
Hello Sir, unprotect multiple sheets at once is very useful for me. thanks!
This comment was minimized by the moderator on the site
I downloaded the kutools (trial version) and installed it as an administrator. I opened a workbook that had 12 worksheets that were protected with same password. Ran the unprotect utility and followed instructions. it said that all Sucessfully unprotected 12 sheets. when I tried to edit them it said the worksheet is password proctected. It did not work. I am not doing something correctly.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations