1

I want to lock a cell that has a value calculated by a formula using EPSPlus.

So if a cell used in the formula is changed the cell value will change accordingly however the cell cannot be edited directly, is this possible?

4

1 回答 1

1

只需保护工作表并锁定所需的单元格,这不会影响公式

worksheet.Protection.IsProtected = true;
worksheet.Cells["A1:B1"].Style.Locked = true;
于 2013-02-26T12:31:06.513 回答