title: Google Spreadsheet - Insert cut/copied cells/rows
body: <p>Google Spreadsheet doesn't have the functionality to "insert cut cells" like in Excel.</p>
  
  <p>Let's say I selected A4 to B5, hit Ctrl+X.<br>
  Then I moved the selection to A2.<br>
  Now I want to "insert cut cells", probably by inserting blank cells and <a href="https://developers.google.com/apps-script/reference/spreadsheet/range#moveTo(Range)" rel="noreferrer">moving</a> the dotted-range to A2.<br>
  <img src="https://i.stack.imgur.com/UxQqg.png" alt="screenshot"></p>
  
  <p>Is there any way to do it using JavaScript on <a href="https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet#addMenu(String,Object)" rel="noreferrer">your own menu</a>?</p>
  
  <p>eg.</p>
  
  <pre><code>function insertCutOrCopiedCells(){
    var SS = SpreadsheetApp.getActiveSpreadsheet();
    var sheet = SS.getActiveSheet();
    var cell = sheet.getActiveCell();
  
    // How do you get the cells being cut/copied? (ie. A4 to B5)
  
    // We can then insert empty cells (2 cols 2 rows) at the selection (A2)
    // and move the cut cells (A4 to B5) there
  }
  </code></pre>