title: How to retrieve the very last row (empty or not) of a Google Sheet by script?
body: <p>I want to prepare a Google Sheet for being printed partially. So I have to hide the unused rows at the bottom:</p>
  <pre><code>lastUsedSheetRow = ownSheet.getLastRow();
  LastSheetRow = ownSheet.XXXXX()?;
  ownSheet.hideRows(lastUsedSheetRow + 1 , LastSheetRow - lastUsedSheetRow + 1);
  
  //hideRows(&lt;index of first row to hide&gt;, &lt;number of rows to hide&gt;);
  </code></pre>
  <p>What do I have to do to get the &quot;veryLastSheetRow&quot; of a sheet?</p>