title: Convert from A1 notation to a string/list notation?
body: <p>I'm attempting to write a script to protect all of a sheet from edits, except for a couple of sections. I currently get the error "Cannot convert Array to Range[]."</p>
  
  <p>I am currently under the impression that I need to write it in a string notation (I thinks that's what it's called) such as (4,3,3,2) for ['C4:D7'] in the format (firstRow, firstColumn, Number of Rows, Number of Columns) as I currently understand it.</p>
  
  <p>this is the script currently:</p>
  
  <pre><code>function Protect() {
    var spreadsheet = SpreadsheetApp.getActiveSheet();
    var protection = spreadsheet.protect();
    protection.setUnprotectedRanges(['C4:D7', 'C11:D13', 'C18:E20', 'F18:G18', 'C23:G25', 'C30:D32'])
  };
  </code></pre>
  
  <blockquote>
    <p>So my main question is what should my line 4 be because nothing I have tried works, (and if you use an example can I request that you use an actual example because i find that I really struggle to get what to do when people use placeholders in their answers)</p>
  </blockquote>
  
  <p>and a sort of sub question is: Is there a way to convert from A1 to string notation (sort of a reverse)?</p>