Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Lock sheet when B13=False

$
0
0

I recorded this macro and want it to be triggered when (in the current sheet) the cell B13=FALSE. Is that possible?

function LockIt() {  var spreadsheet = SpreadsheetApp.getActive();  var protection = spreadsheet.getActiveSheet().protect();  protection.removeEditors(['sampleaddress1@gmail.com', 'sampleaddress1@gmail2.com', 'sampleaddress3@gmail.com']);};

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>