title: How to make onEdit() trigger function apply to multiple sheets
body: <p>I have a Google Sheet I'm working on.</p>
  
  <p>I have a script that fills in the <code>column B</code> with a timestamp when I update <code>column A</code> on the first tab. However I need it to do the same on the second tab, but I can't get it to work there. What do I need to change?</p>
  
  <p>The current script I'm using is:</p>
  
  <pre><code>function onEdit(e) {
  
      var sheetToWatch= 'Wrong Grading',
          columnToWatch = 1,
          columnToStamp = 2;            //change all of these to your needs
  
      if (e.range.columnStart !== columnToWatch
        || e.source.getActiveSheet().getName() !== sheetToWatch
        || !e.value)
          return;
      e.source.getActiveSheet()
          .getRange(e.range.rowStart, columnToStamp)
          .setValue(new Date());
  }
  </code></pre>