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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unkown password sheet, need to unprotect 1

Status
Not open for further replies.

smiley0q0

Technical User
Feb 27, 2001
356
US
my boss has given me some old excel spreadsheets that the sheets were password protected by some unknown john doe
can't get into them to make the necessary changes [flame]

could start from scratch and do some copy paste, but i thought i'd try here first...
a while back I saw either a FAQ or a post with a the code to unprotect a passworded sheet for when you lost or forgot or didn't have the password.

i have searched high and low and can't find it again [cry]

has anyone seen it lately or point me in the right direction?

Thanks
 
thanks, have looked into several of those but company wont go for paying for anything... they said either i crack the code or start from scratch...
 
sorry, i spoke too soon... oops.

thank you
 
A bit slow:

Sub WorksheetUnprotect()

Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1, i2, i3, i4, i5, i6
On Error Resume Next
For i = 65 To 66
For j = 65 To 66
For k = 65 To 66
For l = 65 To 66
For m = 65 To 66
For i1 = 65 To 66
For i2 = 65 To 66
For i3 = 65 To 66
For i4 = 65 To 66
For i5 = 65 To 66
For i6 = 65 To 66
For n = 32 To 126
DoEvents
ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
End Sub
 
I have a piece of code that I got from this site...I'll post it on Monday
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top