Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Protection Removal

Status
Not open for further replies.

dezian

Technical User
Jul 29, 2003
21
GB
I've just inherited some excel files to amend and update, the problem arises when I try to change any of these files as they are password protected and have all the code hidden. What I would like help with is either removing the protection or unhide the code so I can save it as something else without the protection? Any takers.

Your help will be most appreciated.

Cheers Andy Hickson
 
Unless you know the password, you won't have much luck.

If you do know the password, and it is the same for the protection on all of the sheets, you could use the following procedure:

Sub Unprotect_All()
Dim ws as Worksheet
On Error Resume Next
For Each ws in ThisWorkbook.Worksheets
ws.Unprotect "YourPasswordHere"
Next ws
On Error Goto 0
End Sub

I hope this helps!

P.S. If you don't know the passwords, then you need to do a web search for Password Recovery programs (there are a lot of them out there).



Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top