Hello,
At the moment, I have a strong need or rather an urgency to unlock a file in Excel, someone has locked it with a password. Is there any technique to unlock it.
Hello,
At the moment, I have a strong need or rather an urgency to unlock a file in Excel, someone has locked it with a password. Is there any technique to unlock it.
Try this program which will help you.
Thanks for the information provided.
package net.ensode.jexcelapitest;
import java.io.File;
import java.io.IOException;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
public class JExcelApiTest
{
public static void main(String[] args)
{
try
{
Workbook workbook = Workbook.
getWorkbook(new File("/path/to/protected.xls"));
WritableWorkbook copy = Workbook.
createWorkbook(new File("/path/to/unprotected.xls"), workbook);
WritableSheet[] sheets = copy.getSheets();
for (WritableSheet sheet : sheets)
{
sheet.getSettings().setProtected(false);
}
copy.write();
copy.close();
}
catch (BiffException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
catch (WriteException e)
{
e.printStackTrace();
}
}
}
Last edited by Yogesh; 15-10-2008 at 11:25 AM. Reason: External & non-relevant links removed
Why not try a Excek Password Recovery software,There is a product called MS Excel Password Recovery 5.0 ,It is to recover Microsoft Excel passwords, enabling you to easily view the workbooks and sheets for the information. This Excel password recovery tool supports to recover password for Excel documents of all versions through 2007. In addition to the powerful attack modes of brute-force attack, brute-force with mask attack, and smart dictionary attack, this program is super easy to use with the straightforward user interfaces.
I would recommend you to try it.
Good luck!
Bookmarks