Logo 
Search:

C Programming Answers

Ask Question   UnAnswered
Home » Forum » C Programming       RSS Feeds
  Question Asked By: Mex Disuza   on Apr 29 In C Programming Category.

  
Question Answered By: Gorge STF   on Apr 29

hi ,

Optionally,if you do not have MS Excel installed on your machine,you can try XLS.dll. then use the below codes to unluck your excel file



namespace UnlockExcelSheet
{
class Program
{
static void Main(string[] args)
{
//initialize an instance of Workbook
Workbook workbook = new Workbook();
//Load an Excel file with protected worksheet
workbook.LoadFromFile(@"..\Unlock Excel Worksheet.xlsx");
//get the first worksheet
Worksheet sheet = workbook.Worksheets[0];
//Unprotect worksheet
sheet.Unprotect("iceblue");
//Save the file
workbook.SaveToFile("Sample.xlsx");
//Launch the file
System.Diagnostics.Process.Start("Sample.xlsx");
}
}
}

Because you have placed this question on C category,so you may need a soultion by coding:www.e-iceblue.com/.../...lock-Excel-Worksheet.html hope it helps.

kind regards

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Excel Password Recovery Or get search suggestion and latest updates.


Tagged: