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

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -