Allow a temporary filter view on protected sheets and ranges google sheets? -
is there way allow temporary filter view on protected sheets , ranges in google sheets? temporary filter view allowed on view mode. script file available.
wow, found question own answer. wrote script file try out , worked.
function allowfilter(){ var ss = spreadsheetapp.getactive(); var protections = ss.getprotections(spreadsheetapp.protectiontype.sheet); (var = 0; < protections.length; i++) { var protection = protections[i]; if (protection.sheet.filterviewmethod()) { protection.remove(); } } }
Comments
Post a Comment