Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes there is, as long as you are using a <code>.xls</code> format spreadsheet (the default for Excel up to 2003). For Excel 2007 onwards, the default is <code>.xlsx</code>, which is a fairly secure format, and this method will not work.</p> <p>As Treb says, it's a simple comparison. One method is to simply swap out the password entry in the file using a hex editor (see <a href="https://superuser.com/questions/14465/hex-editors-for-windows">Hex editors for Windows</a>). Step by step example:</p> <ol> <li>Create a new simple excel file.</li> <li>In the VBA part, set a simple password (say - 1234).</li> <li>Save the file and exit. <strong>Then check the file size - see <a href="https://stackoverflow.com/questions/1026483/is-there-a-way-to-crack-the-password-on-an-excel-vba-project/1038783#1038783">Stewbob's gotcha</a></strong></li> <li>Open the file you just created with a hex editor.</li> <li><p>Copy the lines starting with the following keys:</p> <pre><code>CMG=.... DPB=... GC=... </code></pre></li> <li><p><strong>FIRST BACKUP</strong> the excel file you don't know the VBA password for, then open it with your hex editor, and paste the above copied lines from the dummy file.</p></li> <li>Save the excel file and exit.</li> <li>Now, open the excel file you need to see the VBA code in. The password for the VBA code will simply be 1234 (as in the example I'm showing here).</li> </ol> <p>If you need to work with Excel 2007 or 2010, there are some other answers below which might help, particularly these: <a href="https://stackoverflow.com/questions/1026483/is-there-a-way-to-crack-the-password-on-an-excel-vba-project/4309545#4309545">1</a>, <a href="https://stackoverflow.com/questions/1026483/is-there-a-way-to-crack-the-password-on-an-excel-vba-project/5867915#5867915">2</a>, <a href="https://stackoverflow.com/questions/1026483/is-there-a-way-to-crack-the-password-on-an-excel-vba-project/5427590#5427590">3</a>.</p> <p><strong>EDIT</strong> Feb 2015: for another method that looks very promising, look at <strong><a href="https://stackoverflow.com/a/27508116/12744">this new answer</a></strong> by Đức Thanh Nguyễn. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload