B
B
belowzero9112019-09-18 12:47:14
Google Sheets
belowzero911, 2019-09-18 12:47:14

Is it possible to set automatic sheet/cell lock in Google Sheets?

There are cells/sheets in Google Spreadsheet. Other employees also have access to this table, and it is inconvenient to manually put protection on cells / sheets on a regular basis. Is it possible to somehow set a timer so that the cell / sheet is automatically blocked, for example, the next day or at the time I appointed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Boev, 2019-09-18
@ProgrammerForever

Write a function and set a time trigger for it:

var spreadsheet = SpreadsheetApp.getActive();
  var protection = spreadsheet.getRange('C3:D5').protect();
  protection.setDescription('Описание');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question