CivilEA.com
  • Subscribe !
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Civil Engineering Association Civil Engineering Resource Civil Engineering Documents Engineering Spreadsheet Excel Worksheet Password Recovery

Excel Worksheet Password Recovery
 babog

Not-Activated

White-private
User ID: 4235
Joined: Aug 2009
Posts: 21
Threads: 14
Likes: 125 in 18 posts
Given Likes: 14
Points:1,851 EP
#1
10-05-2009, 02:38 AM
Here is simple routine to recover password for worksheet (not the file password) and unprotect worksheets

-----------------------------------cut below this line------
Sub PasswordBreaker()
'Author unknown
'Breaks worksheet password protection.
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
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
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)
If ActiveSheet.ProtectContents = False Then
MsgBox "One usable password is " & Chr(i) & Chr(j) & _
Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
End Sub
-----------------cut above this line-----------------
Procedure:
start excel
open the excel file you need to unprotect
Start Visual Basic Editor: Tools -> Macro menu -> Visual Basic Editor
Create a new module : Insert -> module
Paste the above code in the module
Close Visual Basic Editor
Run the Macro named "PasswordBreaker" from Tools -> Macro menu
This will give you a password that you can use to unprotect a worksheet
If you have multiple worksheets, you need to run the macro in each worksheet.

Enjoy
Babo G



[-] The following 47 users Like babog's post:47 users Like babog's post
  • Grunf, Grunf, Dell_Brett, Dell_Brett, Chillpill, Chillpill, oanm2000, oanm2000, Yasir, Yasir, Gabemzaman, Gabemzaman, gayosoneto, gayosoneto, binh.ce, engr1900, JIGM85, bigone, Veggeta, pousin, dinu69in, civilteam, rendel_©, jaks, blackjack, keq7803, waly76, gelbert, Arun.L, Petrit, ssi3k, aami32, ilgar, ravisbassi, jcbv, mrjoesan2, utan, yamacdere, mahfuzbangla, 3fan, we_mbm, arceon, gafi, kchatza, er.shyams, karroumk, henrybill
 Learner

Not-Activated

White-private
User ID: 4207
Joined: Aug 2009
Posts: 150
Threads: 41
Likes: 889 in 112 posts
Given Likes: 126
Points:8,247 EP
#2
10-05-2009, 02:55 AM (This post was last modified: 10-05-2009, 03:04 AM by Learner.)
I have tried out but it does not work. Can others who have tried out and feed back? Thanks!!




  •
 Yasir

Not-Activated

Pakistan
User ID: 206
Joined: Jan 2009
Posts: 79
Threads: 17
Likes: 181 in 29 posts
Given Likes: 892
Points:3,445 EP
#3
10-05-2009, 12:20 PM
ya i have tried and its working for me..




  •
 vvvv

Not-Activated

White-private
User ID: 85
Joined: Dec 2008
Posts: 9
Threads: 4
Likes: 8 in 4 posts
Given Likes: 2963
Points:508 EP
#4
10-05-2009, 01:36 PM
99richard
Works perfectly.




  •
 Dell_Brett

Admin Deputy

Admin Deputy
Brazil
User ID: 4
Joined: Dec 2008
Posts: 2,152
Threads: 264
Likes: 19,010 in 2,179 posts
Given Likes: 42434
Points:110,978 EP
#5
10-06-2009, 12:19 AM
Dear All,

another alternative:

Code:
***************************************
Content of this section is hidden, You must be registered and activate your account to see this content. See this link to read how you can remove this limitation:

http://forum.civilea.com/thread-27464.html
***************************************

Regards

Dell



[-] The following 15 users Like Dell_Brett's post:15 users Like Dell_Brett's post
  • vvvv, vvvv, hsccindia, hsccindia, cristi, cristi, libe, libe, vinnunsam, rendel_©, JIGM85, waly76, jcbv, mrjoesan2, adshrt
 Yasir

Not-Activated

Pakistan
User ID: 206
Joined: Jan 2009
Posts: 79
Threads: 17
Likes: 181 in 29 posts
Given Likes: 892
Points:3,445 EP
#6
01-04-2010, 12:22 PM
dear babog
ur subroutine works fine in some worksheets but sometimes it does not break all sheets if there are number of worksheets in a single excel file.. plzz update ur code if u can..




  •
 mig21

Not-Activated

White-private
User ID: 1884
Joined: May 2009
Posts: 164
Threads: 63
Likes: 821 in 133 posts
Given Likes: 389
Points:8,799 EP
#7
01-04-2010, 03:12 PM
hi

i have used straxx addin for 2 yeras and they solved my problems

regards



[-] The following 3 users Like mig21's post:3 users Like mig21's post
  • Dell_Brett, Yasir, JIGM85
 dinu69in

Not-Activated

White-private
User ID: 16081
Joined: Mar 2010
Posts: 141
Threads: 78
Likes: 1,507 in 138 posts
Given Likes: 1634
Points:8,089 EP
#8
03-13-2010, 11:45 AM
Yasir : You have to run it in every sheet

Dell brett & Mig21 : Could you please provide the "password.xla" file which can be used in Excel 2007 and higher ? Thanks in advance.

:wacko2:




  •
 cadtfoi

Not-Activated

White-private
User ID: 4176
Joined: Aug 2009
Posts: 32
Threads: 19
Likes: 345 in 35 posts
Given Likes: 98
Points:2,783 EP
#9
03-13-2010, 03:19 PM
When i have a excell worksheet protected whith a pass, first of all i trie to open it whith openoffice, in most cases the "excell" of openoficee breaks all the the pass.

All you have to do is open a xls paper in rhe openoffice, noything else.



[-] The following 2 users Like cadtfoi's post:2 users Like cadtfoi's post
  • Dell_Brett, mig21
 abhijit

Not-Activated

India
User ID: 6443
Joined: Sep 2009
Posts: 13
Threads: 2
Likes: 88 in 11 posts
Given Likes: 47
Points:770 EP
#10
12-12-2010, 12:40 PM
code works perfectly

abhijit



[-] The following 1 user Likes abhijit's post:1 user Likes abhijit's post
  • mrjoesan2
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)
Pages (2): 1 2 Next »



Possibly Related Threads…
Thread Author Replies Views Last Post
  Excel password bracker aradadi 4 10,606 11-30-2012, 05:55 PM
Last Post: ska51
  RC DESIGN WORKSHEET malee 1 8,540 09-22-2012, 08:06 AM
Last Post: adshrt
  Rebar Fixing & Anchoring Design Worksheet malee 0 4,983 09-21-2012, 04:48 AM
Last Post: malee

  • View a Printable Version
  • Subscribe to this thread

Designed by CivilEA - Powered by MyBB

Linear Mode
Threaded Mode