title: Script to save cell being edited
body: <p>How can I make a script save the cell that is being edited ?
  (Basically make the script press "enter" before proceeding).</p>
  
  <p>I'm trying to find a fool-proof way of this being done, as this spreadsheet is meant to be used by colleagues.</p>
  
  <p>I have tried <code>setActiveRange</code> / <code>setActiveSelection</code> to set another cell active, but this doesn't work (and therefore the last cell that has been edited - but not validated - is not taken into account by the script.</p>
  
  <p>Same question seems to have been asked 2 years ago :
  <a href="https://stackoverflow.com/questions/34050085/how-do-i-deselect-an-active-cell-when-clicking-on-an-image-to-run-a-script">How do I deselect an active cell when clicking on an image to run a script?</a></p>
  
  <p>But there's no answer.</p>