I have programmed a macro in Google Sheets that displays a table to show the history of certain data that changes every day. Every day the macro inserts a new line with a new date into the table. This is done using a trigger. Problem: The trigger always puts in the data on the first sheet, but my Evaluation list is the 6th sheet and called Evaluation. What do I have to enter into the code so that the values are entered on the 6th sheet (evaluation)?
var tabellenblatt=SpreadsheetApp.getActiveSheet();
var aktuellerZeitpunkt=new Date();
var zeitStempelFormat="dd.mm.yyyy hh:mm:ss";
tabellenblatt.getRange(tabellenblatt.getLastRow()+1,56).setValue(aktuellerZeitpunkt).setNumberFormat(zeitStempelFormat);
var checklist=SpreadsheetApp.getActive().getSheetByName("Phase 1-6 checklist");
var currentValue1=checklist.getRange("BJ406").getValue();
var currentValue2=checklist.getRange("BK406").getValue();
var currentValue3=checklist.getRange("BL406").getValue();
tabellenblatt.getRange(tabellenblatt.getLastRow()+0,57).setValue('=\'Phase 1-6 checklist\'!BH406');
tabellenblatt.getRange(tabellenblatt.getLastRow()+0,58).setValue('1-6');
tabellenblatt.getRange(tabellenblatt.getLastRow()+0,59).setValue('=\'Phase 1-6 checklist\'!BJ406').setValue(currentValue1);
tabellenblatt.getRange(tabellenblatt.getLastRow()+0,60).setValue('=\'Phase 1-6 checklist\'!BK406').setValue(currentValue2);
tabellenblatt.getRange(tabellenblatt.getLastRow()+0,61).setValue('=\'Phase 1-6 checklist\'!BL406').setValue(currentValue3);
}```