Unprotect multiple workbook has same password & different password

Alzakias

New Member
Joined
Apr 15, 2022
Messages
5
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello ,
I have lot of files , are protected , is there a way to unprotect all of them in one time ,
( some of them has same password ) (some has different ) , i have the password for some of them ) like 7b7b1b3b5b5b5
Thank you
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
They would all need to have the same password then you can add a VBA to unprotect all the sheets within the workbook at once using the password

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

Will bring up a box for you to type the password into it to unprotect all sheets in the workbook
 
Upvote 0
I want to unprotect all the multiple workbooks and worksheet's has the same password 7b7b1b3b5b5b5
 
Upvote 0
I want to unprotect all the multiple workbooks and worksheet's has the same password 7b7b1b3b5b5b5
So it's the workbooks that don't all have the same password, but all the worksheets have the same password?
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,794
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top