Based from this forum, you would need all the email address of your collaborators if you are trying to restrict others from editing their own input or if you want them blocked from editing your own. But then this script would also be locking their input into a cell after they do.
function onEdit(e) {
var active = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet Name").getActiveCell();
active.protect().removeEditor("other editors emails");
if(active.getColumn() == 5) { // condition for column active
active.setNote("Locked");
}
}
Note:
getSheetByName("Sheet Name")
- would be to limit this function to
that sheet. active.setNote("Locked");
- to display which cells are
locked.