Advertisement
EmilianoRoldanR

Quitar contraseña Excel y saber cual es

Aug 13th, 2021
1,649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AABBBABBBAAO (contraseña de excel del club)
  2.  
  3. ALT F11. Agruegar + modulo
  4.  
  5.  
  6. Sub jd()
  7. Dim a As Integer, b As Integer, c As Integer
  8. Dim d As Integer, e As Integer, f As Integer
  9. Dim a1 As Integer, a2 As Integer, a3 As Integer
  10. Dim a4 As Integer, a5 As Integer, a6 As Integer
  11. On Error Resume Next
  12. For a = 65 To 66: For b = 65 To 66: For c = 65 To 66
  13. For d = 65 To 66: For e = 65 To 66: For a1 = 65 To 66
  14. For a2 = 65 To 66: For a3 = 65 To 66: For a4 = 65 To 66
  15. For a5 = 65 To 66: For a6 = 65 To 66: For f = 32 To 126
  16. Contraseña = Chr(a) & Chr(b) & Chr(c) & Chr(d) & Chr(e) & Chr(a1) _
  17. & Chr(a2) & Chr(a3) & Chr(a4) & Chr(a5) & Chr(a6) & Chr(f)
  18. ActiveSheet.Unprotect Contraseña
  19. If ActiveSheet.ProtectContents = False Then
  20. MsgBox "¡JD TE DA TU CONTRASEÑA!" & vbCr & "La contraseña es:" & vbCr & Contraseña
  21. Exit Sub
  22. End If
  23. Next: Next: Next: Next: Next: Next
  24. Next: Next: Next: Next: Next: Next
  25. End Sub
  26.  
  27. alt + f8 ejecutar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement