锁定特定的单元格

时间:2017-05-05 02:52:50

标签: excel excel-formula

如何锁定excel中的单个单元格。例如,如果我与我的同事共享一个excel,他们可以修改该excel中的任何内容,但他们不应该单独修改特定单元格(A7)。请有人帮助我

1 个答案:

答案 0 :(得分:0)

const map = {
  address: "GoingToAddressIntent",
  place: "GoingToPlaceIntent",
  type: "GoingToTypeIntent",
  purpose: "GoingToPurposeIntent"
};

const state = map[_slots[0]];
if (state) {
  this.emitWithState(state);
} else {
  this.emit("Unhandled");
}

每当您想取消保护工作表时,只需执行第3步的反向:

1- Unprotect all the cells
   Select all the cells,
   Right-click ---> Format Cells ---> Protection Tab: Uncheck Locked

2- Protect your particular Cell (i.e. A7)
   Select your cell A7
   Right-click ---> Format Cells ---> Protection Tab: Check Locked
   Do the same for all cells or ranges you want to protect.

3- Protect the Worksheet
   Right-click the sheet's Tab, click "Protect Sheet..."
   Select the options you want. 'Basically, you want default (first 2 options)
   Enter a password and click OK

最后一点,请记住,在工作表受到保护之前,锁定单元格无效