ไปยังเนื้อหาหลัก

วิธียกเลิกการป้องกันแผ่นงานหลายแผ่นพร้อมกันใน Excel

ผู้เขียน: Xiaoyang แก้ไขล่าสุด: 2020-06-03

หากคุณมีเวิร์กบุ๊กที่มีแผ่นงานที่มีการป้องกันหลายแผ่นด้วยรหัสผ่านเดียวกันและตอนนี้คุณต้องยกเลิกการป้องกันเพื่อแก้ไขข้อมูลบางอย่าง บางทีคุณสามารถยกเลิกการป้องกันแผ่นงานทีละแผ่นด้วย Unprotect Sheet ใน 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 สำหรับ Excel's ยกเลิกการป้องกันแผ่นงาน เป็นเครื่องมือที่มีประโยชน์ซึ่งสามารถช่วยให้คุณยกเลิกการป้องกันแผ่นงานหลายแผ่นด้วยรหัสผ่านเดียวกันพร้อมกันได้อย่างรวดเร็ว

Kutools สำหรับ Excel : ด้วย Add-in ของ Excel ที่มีประโยชน์มากกว่า 300 รายการทดลองใช้ฟรีโดยไม่มีข้อ จำกัด ใน 30 วัน

หลังจากการติดตั้ง Kutools สำหรับ Excelโปรดดำเนินการดังนี้:

1. คลิก Kutools พลัส > ยกเลิกการป้องกันแผ่นงานดูภาพหน้าจอ:

2. ใน ยกเลิกการป้องกันแผ่นงาน กล่องโต้ตอบแผ่นงานที่มีการป้องกันจะแสดงรายการในไฟล์ แผ่นงาน กล่องรายการจากนั้นตรวจสอบชื่อแผ่นงานที่คุณต้องการยกเลิกการป้องกันแล้วคลิก OKจากนั้นป้อนรหัสผ่านที่คุณใช้สำหรับแผ่นงานที่มีการป้องกัน (แผ่นงานที่ได้รับการป้องกันจะต้องมีรหัสผ่านเดียวกัน) ในกล่องโต้ตอบที่โผล่ออกมาดูภาพหน้าจอ:

3. จากนั้นคลิก OKกล่องพร้อมต์จะเตือนคุณว่ามีกี่แผ่นที่ไม่มีการป้องกัน จากนั้นคลิก OKแผ่นงานที่เลือกทั้งหมดไม่มีการป้องกันในสมุดงานของคุณ ดูภาพหน้าจอ:

ทิปส์: เพื่อป้องกันแผ่นงานทั้งหมดภายในสมุดงานของคุณพร้อมกันคุณต้องสมัคร ปกป้องแผ่นงาน of Kutools สำหรับ Excel ตามภาพหน้าจอต่อไปนี้:

ดาวน์โหลดและทดลองใช้ Kutools for Excel ฟรีทันที!


ลูกศรสีฟ้าฟองขวา การสาธิต: ป้องกันและยกเลิกการป้องกันหลายแผ่นพร้อมกันด้วย Kutools for Excel

Kutools สำหรับ Excel: ด้วย Add-in ของ Excel ที่มีประโยชน์มากกว่า 300 รายการให้ทดลองใช้ฟรีโดยไม่มีข้อ จำกัด ใน 30 วัน ดาวน์โหลดและทดลองใช้ฟรีทันที!

บทความที่เกี่ยวข้อง:

วิธีป้องกันแผ่นงานหลายแผ่นพร้อมกันใน Excel

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 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