Answer the question
In order to leave comments, you need to log in
Whether it is possible in a normal way to forbid to edit everything, except for a range?
For example, disable the entire workbook or at least the entire sheet, but open a single cell or range.
Now, if two ranges overlap, the deny priority is higher. Thus, if you disable the entire sheet, then no allowable ranges work. You have to do something like this:
Answer the question
In order to leave comments, you need to log in
Well, look, when you drag some element, the mouse moves and continues to create events. So when, when dragging, it enters the card area, move it down (margin-top). When releasing the click, remove the shift and insert the element in front of the card. All.
You can protect the sheet and add exclusions to the sheet protection, rather than adding a "permissive" range.
For example, you cannot create a new sheet or change the structure of the current sheet, but you can edit A1
https://docs.google.com/spreadsheets/d/1nleri9Tedl...
In my projects, I make scripts that handle several layers of protection well. It's much faster than by hand.
/**
*
* @param {GoogleAppsScript.Spreadsheet.Sheet} sheet
*/
function protectSheet_(sheet) {
var protection = sheet.protect().setDescription('Autoprotection');
var unprotected = sheet.getRangeList(getCommonNotasList_()).getRanges();
protection.setUnprotectedRanges(unprotected);
var me = Session.getEffectiveUser();
protection.addEditor(me);
protection.removeEditors(protection.getEditors());
protection.addEditors(editors);
if (protection.canDomainEdit()) protection.setDomainEdit(false);
};
var getCommonNotasList_ = function() {
var a1Notations = [
'B2:B4',
'B6:B7',
'A14:E30',
'I3:Q26',
'S2:V21',
'T33:W264'
];
return a1Notations;
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question