Desproteger planilha com senha.

Para desbloquear uma planilha protegida por senha, será necessário criar uma macro.

Testamos esta macro no MS Office 2007.

  • Abra o MS Excel 2007.
  • Clique na aba DESENVOLVEDOR (Como habilitar a aba desenvolvedor).
  • Clique no botão MACROS.
  • No campo NOME DA MACRO, digite por exemplo "DesprotegerPlanilha" [Sem aspas].
  • Clique no botão CRIAR
  • Copie e cole o código abaixo.

Sub DesprotegerPlanilhaAtiva()
Dim i, i1, i2, i3, i4, i5, i6 As Integer, j As Integer, k As Integer, l As Integer , m As Integer, n 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 "Planilha desprotegida com sucesso!!!"
Exit Sub
End If
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
End Sub

  • Execute o código apertando F5 do teclado.
  • Aguarde a mensagem de conclusão.

Pronto. A planilha estará desbloqueada.

OBS.: Utilize apenas este recurso para planilhas de sua autoria, onde a senha foi esquecida. Respeite planilhas de terceiros que decidiram protegê-la por senha.

Fonte: http://www.guiadohardware.net/comunidade/desproteger-planilha/299297/

Tags:

Comentários

GRAÇAS À DEUS!!!! Isso foi perfeito para mim!! Muito obrigada!

Parabéns pela rotina.

Muito obrigado.

The plumpish woman delivered her back the key, kissing and hugging her significantly more intently than the first time; and after she had bellowed to her all over again, they advised me load the trunk on my very own back, and it tended to me thinner than the month before as my preferred stomach was fuller. The youth hasn't yet perceived precisely how plenty wrongs are consistently hovering about most of us, and when he is let loose from the shackles of discipline, looks abroad in to the globe with rapture; he regards an 10 inch table saw elysian location open before the fellow, so variegated with charm, so stored with thrill, that his care is quite to propagate high quality, than to shun evil; he stands distracted by distinct types of delight, and bosch 4100dg-09 has no other doubt, than which course to adhere to of some of those which almost all lead uniformly to the bowers of contentment.

não consegui. tenho o office 2010

Meu amigo!!

Simplismente sem palavras pra isso... este desbloqueio representa um divisor de aguas pra mim... valw mesmo

Prezado,

Minha planilha possui senha para abri-la, esqueci a senha e agora não consigo ver o conteúdo. Nesse caso existe algo que possa fazer para abrir a planilha do excell protegida??

Conto com sua ajuda assim que possível, preciso muito das informações contidas lá.

Abs.

Bom Dia,

Gostaria de saber onde fica a aba DESENVOLVEDOR e o botão MACROS, aguardo

Grato
Baracat.

valeu,mim ajudou bastante

Muito bom!! Muito útil!! Funcionou perfeitamente. Grata

Com voce fez para desproteger no excel 2010, pois o meu não está dando certo... Por favor me ajude..

Grato

Muito útil! Testei com o Excel 2010 e também funciona perfeitamente.

Com voce fez para desproteger no excel 2010, pois o meu não está certo... Por favor me ajude..

Grato

No Excel 2010 e na aba exibição, você click e cria o macro automaticamente abre a janela que se de ve colocoa o codigo porem deve se reticar a primeira e a ultima linha por que são as mesmas que o programa cria automaticamente.
Dai e so executar....hahahahahahh

Então maravilha.

Comentar

O conteúdo deste campo é privado não será exibido ao público.
  • Endereços de páginas de internet e emails viram links automaticamente.
  • Tags HTML permitidas: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Quebras de linhas e parágrafos são feitos automaticamente.

Mais informações sobre as opções de formatação

Image CAPTCHA
Informe os caracteres presentes na imagem