Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

100
Views
get A1Notation of unprotected range on google sheet

Is there a way to get the range of a unprotected cells of a sheet in A1Notation? I have this function but don't show me the A1Notation, and I don't know what more do:

 function parametrosdeProceso() {

var ss = SpreadsheetApp.getActiveSpreadsheet();
var hoja = ss.getSheetByName("KMD108");
var protection = hoja.protect();
var unprotected= protection.getUnprotectedRanges();
 
Logger.log(unprotected);


}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try, for one sheet

function listOfUnprotectedRanges() {
  var p = SpreadsheetApp.getActiveSheet().getProtections(SpreadsheetApp.ProtectionType.SHEET)[0];
  var ranges = p.getUnprotectedRanges().map(r => r.getA1Notation())
  console.log(ranges)
}

for the whole spreadsheet

function listOfUnprotectedRanges() {
  var p = SpreadsheetApp.getActiveSpreadsheet().getProtections(SpreadsheetApp.ProtectionType.SHEET);
  p.forEach(x => {
    var ranges = x.getUnprotectedRanges().map(r => r.getA1Notation())
    console.log(ranges)
  })
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!