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