Hello,
Looks like Worksheet.Cell(i,j).Style.Protection.Locked = true does not work like intended and the field is still editable. Is there something I am missing?
Thanks
Comments: The same way you would do it in Excel. Unlock the entire worksheet and then lock individual cells. worksheet.Protect(); worksheet.Style.Protection.Locked = false; worksheet.Cell("A1").Style.Protection.Locked = true;
Looks like Worksheet.Cell(i,j).Style.Protection.Locked = true does not work like intended and the field is still editable. Is there something I am missing?
Thanks
Comments: The same way you would do it in Excel. Unlock the entire worksheet and then lock individual cells. worksheet.Protect(); worksheet.Style.Protection.Locked = false; worksheet.Cell("A1").Style.Protection.Locked = true;