Sie sind auf Seite 1von 3

HelpDeskSelfService

Maps

Departments

COMPUTING&INFORMATIONTECHNOLOGY
HowtoUnprotectanexcelsheetwithoutpassword
THisdocumentwilltelyouhowtounprotectanexcelspreadsheetwithouthavingthepassword
ThisprocedureworksinExcel2010andearlierbutinExcel2013thiswillnotwork.

IncaseofapasswordprotectworksheetyouareunabletoEditthedataontheExcelSheet.IfyoudonotRememberthe
Passwordordonotknowthepasswordtounprotectthesheetjustfollowthebelowsimplesteps.

PressALT+F11orclickonViewCodeinDevelopersTabs

IntheAboveWhiteSpaceEnterthebelowCode.Donotchangethecodejustcopypaste:
SubPasswordBreaker()
'Breaksworksheetpasswordprotection.
DimiAsInteger,jAsInteger,kAsInteger
DimlAsInteger,mAsInteger,nAsInteger
Dimi1AsInteger,i2AsInteger,i3AsInteger
Dimi4AsInteger,i5AsInteger,i6AsInteger
OnErrorResumeNext
Fori=65To66:Forj=65To66:Fork=65To66
Forl=65To66:Form=65To66:Fori1=65To66
Fori2=65To66:Fori3=65To66:Fori4=65To66
Fori5=65To66:Fori6=65To66:Forn=32To126
ActiveSheet.UnprotectChr(i)&Chr(j)&Chr(k)&_
Chr(l)&Chr(m)&Chr(i1)&Chr(i2)&Chr(i3)&_
Chr(i4)&Chr(i5)&Chr(i6)&Chr(n)
IfActiveSheet.ProtectContents=FalseThen
MsgBox"Oneusablepasswordis"&Chr(i)&Chr(j)&_
Chr(k)&Chr(l)&Chr(m)&Chr(i1)&Chr(i2)&_
Chr(i3)&Chr(i4)&Chr(i5)&Chr(i6)&Chr(n)

ExitSub
EndIf
Next:Next:Next:Next:Next:Next
Next:Next:Next:Next:Next:Next
EndSub
NowClickontheRunButtonorpressF5:

Andthereyougothesheetisunprotectedforyounow.Alsoyouwouldbegettingamessageinthepopupwindow.
ThisMessageiscontainsthepasswordwhichcanbeusedtounprotecttheothersheetsinthesameworkbook.

Keywords: Excel,password,unprotectSuggestkeywords DocID: 28850


Owner:
KevinB.
Group: UWGreenBay
Created: 2013022816:16CDT
Updated: 2015040210:25CDT
Sites:
UWGreenBay
Feedback: Helpful 10471 Unhelpful 3232CommentSuggestanewdocument

Das könnte Ihnen auch gefallen