<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Excel Zoom &#187; Password</title>
	<atom:link href="http://excelzoom.com/tag/password/feed/" rel="self" type="application/rss+xml" />
	<link>http://excelzoom.com</link>
	<description>...because it&#039;s more than just a calculator</description>
	<lastBuildDate>Wed, 02 Sep 2009 20:43:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to Recover Lost Excel Passwords</title>
		<link>http://excelzoom.com/2009/08/how-to-recover-lost-excel-passwords/</link>
		<comments>http://excelzoom.com/2009/08/how-to-recover-lost-excel-passwords/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 18:30:52 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[Automatic]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[Shortcuts]]></category>

		<guid isPermaLink="false">http://excelzoom.com/?p=274</guid>
		<description><![CDATA[Let me preface this article by saying that this will not help you recover lost data, or gain access to protected data that you otherwise wouldn&#8217;t have access to.  What it will do is allow you to unlock a password protected worksheet in Excel, so that you can edit it as necessary.  Simply put, if [...]]]></description>
			<content:encoded><![CDATA[<p>Let me preface this article by saying that this will not help you recover lost data, or gain access to protected data that you otherwise wouldn&#8217;t have access to.  What it will do is allow you to unlock a password protected worksheet in Excel, so that you can edit it as necessary.  Simply put, if you don&#8217;t already have access to the worksheet, this macro will not help you.</p>
<p>Now that the disclaimer is out of the way, let&#8217;s figure out why people password protect worksheets to begin with.  By protecting a worksheet and the contents of locked cells, users can keep themselves or other users from:</p>
<ul>
<li>accidentally (or intentionally) removing formulas, or other contents of locked cells</li>
<li>adding or deleting rows and columns</li>
<li>changing cell, column or row formats</li>
<li>sorting data</li>
<li>using AutoFilter or PivotTable reports</li>
<li>editing objects or scenarios</li>
</ul>
<p>Protecting a worksheet will <strong><span style="text-decoration: underline;">not</span></strong> keep users from</p>
<ul>
<li>editing any unlocked cells in the worksheet</li>
<li>viewing all data in the worksheet, regardless of if it is in a locked cell or not</li>
</ul>
<p>Being able to unlock a password protected worksheet is useful, when</p>
<ul>
<li>you have forgotten the password on your own worksheet</li>
<li>a co-worker, or other user has password protected a worksheet that you now need to edit, and they are not available to unlock the sheet for you</li>
<li>you have a need to perform an analysis of the data in a password protected worksheet, but are unable to do so due to the locked cells</li>
<li>you would like to sort/filter the data in a password protected worksheet, or create a PivotTable report from the data</li>
</ul>
<p>Since Microsoft Excel is not a &#8220;secure&#8221; program, it is very easy to unlock the password of a password protected worksheet.  This is because there are several different combinations of passwords that Excel will accept to unlock the worksheet.  For example, a worksheet with the password &#8220;treehouse&#8221;, can also be unlocked with the password &#8220;AAAABAABBBB/&#8221;.  The opposite is also true (i.e. protecting with the password &#8220;AAAABAABBBB/&#8221; can be unlocked with the password &#8220;treehouse&#8221;).  Go ahead; try locking a worksheet with the password treehouse, and use AAAABAABBBB/ to unlock it.</p>
<p>The macro code below will &#8220;unlock&#8221; one worksheet at a time, using the method used above.  It won&#8217;t provide you with the actual password someone typed in, but rather a random sequence of letters or symbols that will work to unlock the worksheet.</p>
<p><code><br />
Sub PasswordRecovery()<br />
    '<br />
    'MACROS BY EXCELZOOM.COM<br />
    Dim i As Integer, j As Integer, k As Integer<br />
    Dim l As Integer, m As Integer, n As Integer<br />
    Dim i1 As Integer, i2 As Integer, i3 As Integer<br />
    Dim i4 As Integer, i5 As Integer, i6 As Integer<br />
    On Error Resume Next<br />
    For i = 65 To 66: For j = 65 To 66: For k = 65 To 66<br />
    For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66<br />
    For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66<br />
    For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126<br />
    ActiveSheet.Unprotect Chr(i) &#038; Chr(j) &#038; Chr(k) &#038; _<br />
        Chr(l) &#038; Chr(m) &#038; Chr(i1) &#038; Chr(i2) &#038; Chr(i3) &#038; _<br />
        Chr(i4) &#038; Chr(i5) &#038; Chr(i6) &#038; Chr(n)<br />
    If ActiveSheet.ProtectContents = False Then<br />
        MsgBox "One usable password is " &#038; Chr(i) &#038; Chr(j) &#038; _<br />
            Chr(k) &#038; Chr(l) &#038; Chr(m) &#038; Chr(i1) &#038; Chr(i2) &#038; _<br />
            Chr(i3) &#038; Chr(i4) &#038; Chr(i5) &#038; Chr(i6) &#038; Chr(n)<br />
         Exit Sub<br />
    End If<br />
    Next: Next: Next: Next: Next: Next<br />
    Next: Next: Next: Next: Next: Next<br />
End Sub<br />
</code></p>
<!-- Easy AdSense V2.61 -->
<!-- Post[count: 2] -->
<div class="ezAdsense adsense adsense-leadout" style="float:left;margin:12px;"><script type="text/javascript"><!--
google_ad_client = "pub-0662082843230645";
/* Excel Zoom Post Bottom468x60, created 5/31/09 */
google_ad_slot = "1891900730";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></content:encoded>
			<wfw:commentRss>http://excelzoom.com/2009/08/how-to-recover-lost-excel-passwords/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
